Re: when uses time.clock,there are always mistakes

2020-02-03 Thread Peter Otten
石盼 wrote: > The problem like this: > t = time.clock() > AttributeError: module 'time' has no attribute 'clock' Quoting https://docs.python.org/3/whatsnew/3.8.html#api-and-feature-removals """ The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.pe

Re: when uses time.clock,there are always mistakes

2020-02-03 Thread Rhodri James
On 03/02/2020 08:04, 石盼 wrote: Hello !  The problem like this:   RESTART: Shell   >>> import time   >>> t = time.clock()   Traceback (most recent call last):   File "", line 1, in  

when uses time.clock,there are always mistakes

2020-02-03 Thread 石盼
Hello !  The problem like this:   RESTART: Shell   >>> import time   >>> t = time.clock()   Traceback (most recent call last):   File "", line 1, in   t = time.clock()   A