我有以下幾點:與關鍵字和Jython 2.5.1
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
我使用NetBeans插件蟒取決於Jython的2.5。 1
我已經加入:
from __future__ import with_statement
但這並沒有改變任何東西。
任何建議怎麼辦?
謝謝
有沒有解決辦法? – user61629
這是否解決了您的問題? –
謝謝,解決了它。 – user61629