Skip to content

Instantly share code, notes, and snippets.

View Larry-u's full-sized avatar

Larryu Larry-u

  • China
  • 08:35 (UTC -12:00)
View GitHub Profile
'''=============================插入根目录到path=========================='''
ROOT = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")
sys.path.insert(0, os.path.join(ROOT))
'''=============================format时间为x天x小时x分=========================='''
import time
import datetime
'{:0>8}'.format(str(datetime.timedelta(seconds=round(time.time() - main_st))))
'''=============================python多进程处理=========================='''