質問

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