请教: rhinopython 代码无法运行,如何解决呢

错误代码:File “C:\Users\AppData\Local\Temp\TempScript.py”, line 3
SyntaxError: Non-ASCII character ‘\xe9’ in file C:\Users\AppData\Local\Temp\TempScript.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

rhinopython默认情况不支持中文造成的,你需要在第一行加一句编码格式#coding=utf-8就行了。

1 个赞

好的,谢谢版主!