摘要:
import os import time def TimeStampToTime(timestamp): timeStruct = time.localtime(timestamp) return time.strftime('%Y-%m-%d %H:%M:%S', timeStruct) # # 阅读全文
posted @ 2023-03-09 15:59
Wchime
阅读(51)
评论(0)
推荐(0)
摘要:
import time import datetime def get_time_str(): # 定义文件名,年月日时分秒随机数 # fn = time.strftime('%Y%m%d%H%M%S') # fn = fn + '_%d' % random.randint(0, 1000) ct 阅读全文
posted @ 2023-03-09 15:45
Wchime
阅读(57)
评论(0)
推荐(0)
摘要:
将py文件编译为so文件 利用上面代码生成so文件生成的文件不方便取放,名字也不一样 通过执行发现转换执行了下面三句 /usr/local/python3/bin/cython test.py gcc -pthread -Wno-unused-result -Wsign-compare -DNDEB 阅读全文
posted @ 2023-03-09 15:19
Wchime
阅读(460)
评论(0)
推荐(0)

浙公网安备 33010602011771号