From the time the import time
Import a datetime
Time0=time ()
Print (datetime. Datetime. Fromtimestamp (time () - time0). The strftime (" % M: % S: % f "))
An error is as follows:
OSError Traceback (the most recent call last)
2 the import datetime
3 time0=time ()
- & gt; 4 the print (datetime. Datetime. Fromtimestamp (time () - time0). The strftime (" % M: % S: % f "))
OSError: [22] Errno Invalid argument
CodePudding user response:
You use python 3. X environment to run, may be a version issue,CodePudding user response:
Python3 environment code no problem, you check your environment,CodePudding user response: