【发布时间】:2011-08-04 20:08:26
【问题描述】:
当我运行这段代码时:
tickers = re.findall(r'Process Name: (\w+)', s)
file = open("C:\Documents and Settings\jppavan\My Documents\My Dropbox\Python Scripts\Processes\GoodProcesses.txt","w")
file.write(tickers)
file.close()
返回常见错误:
TypeError: 需要一个字符缓冲区对象
有什么想法吗?
【问题讨论】: