rosrun运行Python程序报错SyntaxError:Non-ASCII(二)
在rosrun运行Python程序时,提示
File "/home/li/xjh_ur/src/ur_test/moveit_cartesian_demo.py", line 12
SyntaxError: Non-ASCII character '\xe5' in file /home/li/xjh_ur/src/ur_test/moveit_cartesian_demo.py on line 12, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
解决办法:
在代码前边加上: