【发布时间】:2022-08-04 20:57:41
【问题描述】:
Traceback (most recent call last):
File \"D:\\Mata Kuliah\\Semester VI\\Bahan Sistem Tersebar\\concurrent_futures_pooling.py\", line 20, in <module>
start_time = time.clock()
AttributeError: module \'time\' has no attribute \'clock\'
-
你是如何导入
time的?import time还是from time import time?你需要第一个。 -
你需要
time.time()? -
@Guy 这无关紧要,因为 Python 3 的
time模块没有clock。
标签: python pandas matplotlib