我尝试通过命令行使用python脚本来管理我的dropbox,当我尝试运行它时,我得到了以下结果
-> ~/bin/dropbox.py help
File "/home/jcostanzo/bin/dropbox.py", line 50
INFO = u"Dropbox is the easiest way to share and store your files online. Want to learn more? Head to"
^
SyntaxError: invalid syntax这是我的python版本
-> python --version
Python 3.2.3我遗漏了什么?谢谢
发布于 2013-04-18 01:25:35
看起来此脚本在您的Python版本中不起作用。
U‘’unicode‘语法在Python 2.x中有效,在Python3.3中也有效。
另请参见Unicode literals that work in python 3 and 2和What’s New In Python 3.3。
https://stackoverflow.com/questions/16033821
复制相似问题