本文共 237 字,大约阅读时间需要 1 分钟。
#!/noah/bin/python3 -uimport timesecond = str(time.time()).split('.')[0]print(time.localtime(time.time()))time.sleep(1)newSecond = str(time.time()).split('.')[0]t1 = int(second)t2 = int(newSecond)print(t2-t1)print(second)print(newSecond)
转载地址:http://akoqj.baihongyu.com/