执行时:
path=os.path.dirname(__file__)+'/log.txt'
log=open(path,"w",encoding='utf-8')
我得到:
log=open(path,'w',encoding='utf-8')
File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in __init__
raise IOError('invalid mode: %s' % mode)
IOError: invalid mode: w
我不确定为什么我不能写入文件?