【发布时间】:2017-10-17 09:39:15
【问题描述】:
我收到以下代码的错误:
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 python-import getcwd