You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/zoctopus/code/github_organization/programming-book-practice/Python-Crash-Course-Homework/chapter08/print_models.py", line 6, in <module>
print_models(unprinted_designs, completed_models)
NameError: name 'print_models' is not defined
运行8-16
print_models.py
程序报错信息
思考
按照书上讲解,
import
文件名后,这个被引入文件里的所有定义的函数都是通用的。为什么报
not defined
的错误呢?The text was updated successfully, but these errors were encountered: