📅  最后修改于: 2022-03-11 14:45:37.892000             🧑  作者: Mango
import timeit
import_module = "import random"
testcode = '''
def test():
return random.randint(10, 100)
'''
print(timeit.repeat(stmt=testcode, setup=import_module))