Python错误之:TypeError: ‘module‘ object is not callable

Python错误之:TypeError: ‘module‘ object is not callable,第1张

在调用的时候出现错误

解决方法:

Python导入模块的方法有两种:import module 和 from module import,import module导入的东西使用时需加上模块名的限定

修改为

from time import time
count = 0
while count < 10:
    print('ok',time,time())
    count = 100
print(123)

学习日记 

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/801920.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-07
下一篇2022-05-07

发表评论

登录后才能评论

评论列表(0条)

    保存