AttributeError: module ‘time‘ has no attribute ‘clock‘

提示的报错无法解决
AttributeError: module ‘time‘ has no attribute ‘clock‘_第1张图片

from Crypto.Util.number import *

import os

flag = b'flag{}'
m = bytes_to_long(flag)

import time
import datetime

p = getPrime(1024)

q = getPrime(1024)
n = p*q
e = 3

hint = bytes_to_long(os.urandom(256))

m1 = m | hint
m2 = m&hint

c= pow(m1, e, n)

with open('output.txt','a') as f:
    f.write(str([n,c,m2,hint]))
    f.close()


以上的提示,表明没有模块time没有clock()属性,如何解决?

你可能感兴趣的:(python,time)