<分区> 分区>
python2.7不支持中文路径?
File "/Users/denghaibing/Desktop/Test/TestPython/testDemo02/apps/用户首页/ordermanage/api/views.py", line 11, in <module>
from .serializers import OrderSerializer
File "/Users/denghaibing/Desktop/Test/TestPython/testDemo02/apps/用户首页/ordermanage/api/serializers.py", line 46
from 用户后台.产品管理.productmanage.models import (
^
SyntaxError: invalid syntax
在我的项目中:
你看,我使用两级中文目录将我的应用程序分组在我的测试项目中。
但这在Python3.5中有效,但如果使用Python2.7解释器,就会出现SyntaxError: invalid syntax问题。不支持中文路径。
有没有办法让Python2.7支持中文路径?
