我得到一个错误与下面的代码: from os import getcwd
os.getcwd()
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
os.getcwd()
NameError: name 'os' is not defined
谁知道为什么进口这种方式是不工作?
不能在同一文件夹导入一个Python程序 C:\用户\ User_Unknowed \桌面\马文 所以我已经开始只是看它是否在哪里fun.py可能是错误的,或者它不能只是找到现在打印错误,所以我需要帮助。 我对test67.py代码: 的代码的代码 import os.path
if not os.path.exists(fun.py):
print("Alarm")
if os