【发布时间】:2013-05-15 17:51:19
【问题描述】:
我有以下几点:
with open("c:\xml1.txt","r") as f1, open('c:\somefile.txt','w') as f2:
这是一个语法错误:
with open("c:\xml1.txt","r") as f1, open('c:\somefile.txt','w') as f2:
^
SyntaxError: mismatched input ',' expecting COLON
我正在使用依赖于 jython 2.5.1 的 netbeans python 插件
我已添加:
from __future__ import with_statement
但这并没有改变任何东西。
有什么建议吗?
谢谢
【问题讨论】: