我在使用 Pyzo 4.10.2 时尝试导入 os 时收到此消息:
ValueError:源代码字符串不能包含空字节
这是我尝试过的代码:
from os import *
os.mkdir('Repertoire_test')
我之前也试过import os
。
当我直接在python(黑色背景解释器)中尝试它时,它可以工作,因为我可以在我的硬盘驱动器中看到该文件夹:
Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.mkdir('Rpertoire_test')
>>>
谢谢