คำถามติดแท็ก bidi

4
NameError: ไม่ได้กำหนดชื่อโกลบอล 'unicode' - ใน Python 3
ฉันพยายามใช้แพ็คเกจ Python ชื่อ bidi ในโมดูลในแพ็คเกจนี้ (algorithm.py) มีบางบรรทัดที่ทำให้ฉันมีข้อผิดพลาดแม้ว่าจะเป็นส่วนหนึ่งของแพ็คเกจก็ตาม นี่คือบรรทัด: # utf-8 ? we need unicode if isinstance(unicode_or_str, unicode): text = unicode_or_str decoded = False else: text = unicode_or_str.decode(encoding) decoded = True และนี่คือข้อความแสดงข้อผิดพลาด: Traceback (most recent call last): File "<pyshell#25>", line 1, in <module> bidi_text = get_display(reshaped_text) File "C:\Python33\lib\site-packages\python_bidi-0.3.4-py3.3.egg\bidi\algorithm.py", line 602, in …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.