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
理由を知っている人はいますか?