我想打印文件的行,但发生了一些语法错误。我的代码有什么问题?
History_Data = open("C:/lottery/Dataset/History.txt","r")
Line = History_Data.readline()
print Line
History_Data.close()
错误信息显示:
PS C:\Temp> python.exe .\1.py
File ".\1.py", line 5
print Line
^
SyntaxError: invalid syntax