在调用的时候出现错误
解决方法:
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)
学习日记

在调用的时候出现错误
解决方法:
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)
学习日记