[英]print function in Python3
我目前在Eclipse JavaEE Indigo中使用Python3.2。
我使用函数print如下:
input = open('test.txt', 'r')
for line in input:
print(line, end='')
Eclipse报告语法错误
print(line, end = '')
它表明了这一点
Syntax error while detecting tuple.
print Found at: builtins
print(value, ..., sep=' ', end='\n', file=sys.stdout)
但是,该程序运行完美。
有什么我可以做的删除错误符号或有什么更好的解决方案来解决这个问题吗?
将语法版本更改为Python 3.x.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.