Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在 python 控制台中输入这个
>>> ord(u'⚤')
python -c它可以工作,但是当我尝试从 bash中放入它时
python -c
python -c "print ord(u'⚤')"
它抛出:
File "<string>", line 1 print ord(u'⚤') ^ SyntaxError: EOL while scanning string literal
有人知道为什么吗?