gesture_strings = { : : : }
请大佬帮忙看下:
按照教程生成的手势运行会报错。
File "D:\PythonProject\kv-demo\pages\uploadpage\upload.py", line 9, in <module>
from custom_gestures.gesture_box import GestureBox
File "D:\PythonProject\kv-demo\custom_gestures\gesture_box.py", line 8
'right_to_left_line': 'eNprYJmaz8YABj082ZlllXrpqcUlpUWpU3rY3aGsyVM0G6fUTtHoYS3PTCnJmOLu0JIA0cGWkZqZnlECFOEA8RkZevih2uMLivJTSpPBUiEMAbJHVHrYi0uK8rNTi6fETslg6OGFmh4MFkTYwVaQn5lXAlKkAVTFA1UVABJEKGKsmOJu/2z+xLyHHcw9jJVT3PdnL3Gf+z+RoTQpQxCiJkPE3f7JbfvDG25IZ4i624dIJS0sfoEmf+fz/tdP5yYMW/mrtV8Df8+yopn81smBUcdVE0aq/P45kaaia4oCBkx+f57Dlrfla2gmf2LfrxV/z8qQLX8y9EDPjk1ZOOXP3ly7+Y81L075i3pnc+c/vAGUR+Tv1B6e4uSi1NQ8RDnh7tChAC6P3B1Kzv8HgTZgsdOhgSnWzgAVKwXTjCCxpg+YYg0TMMXKHmCKFQVgiuVgUZeugCmWhkVd2gFMsVQsYilY9KZgU7cAUywZi94kmFgJJDBAYokMmOEX74ApFochllqalNjDWZKfk1qUmJecCiyqd84EgVk9LHmJucCahWFKaZIeALoEXCw='
^
SyntaxError: invalid syntax
注释掉左到右和右到左划的语句后就是对的。手势字符串是按照视频和书上用库生成的,直接复制来的。搞不懂,为什么会非法。
请老师帮忙指点一些,谢谢。