문제

Trying to use the python script to manage my dropbox via the command line and when I try to run it I get the following

-> ~/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

Here is my python version

-> python --version
Python 3.2.3

What am I missing? Thanks

도움이 되었습니까?

해결책

Looks like this script doesn't work in your version of Python.

The u'unicode' syntax works in Python 2.x, and again in Python 3.3.

See also Unicode literals that work in python 3 and 2 and What’s New In Python 3.3.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top