我在使用 Pyzo 4.10.2 時嘗試導(dǎo)入操作系統(tǒng)時收到此消息:ValueError:源代碼字符串不能包含空字節(jié)這是我試過的代碼:from os import *os.mkdir('Repertoire_test')我以前也試過import os。當我直接在 python 中嘗試它時(黑色背景解釋器)它可以工作,因為我可以在我的硬盤驅(qū)動器中看到該文件夾:Warning:This Python interpreter is in a conda environment, but the environment hasnot been activated. Libraries may fail to load. To activate this environmentplease see https://conda.io/activationType "help", "copyright", "credits" or "license" for more information.>>> import os>>> os.mkdir('Rpertoire_test')>>>
無法在python中導(dǎo)入操作系統(tǒng)
慕的地8271018
2023-06-20 10:31:14