Qpython unicode字符串

问题描述:

我试图端口一个Python 3.5的项目从PC到Android QPython3但行: -Qpython unicode字符串

if ch = in u'\x00\xe0': 
    ch = getwch() 

我得到这个当我运行它: -

if ch = in u'\x00\xe0': 
       ^
    SyntaxError: invalid syntax 

我以为QPython3应该运行所有的3.x脚本和Unicode 'u'前缀不是一个新的增加,所以问题是什么?字符串中的十六进制数字处理方式不同吗

要回答我的问题,经过反复摆弄我用它来工作: -

if ch in bytes([0x00, 0xe0]):

代替。