回复 4 楼 静夜思
Type "copyright", "credits" or "license()" for more information.
>>> context = "'hello world hello china'"
>>> f= = file('hello.txt','w')
SyntaxError: invalid syntax
>>> f = file('hello.txt','w')
>>> f.write(context)
>>> f.close
<built-in method close of file object at 0x0000000002846420>
>>> f.close()
>>>
那然后呢