random
import random
random.sample(list,2)
f_name = ["赵","钱","孙","李","周","吴","郑","王"]
s_name = ["一","二","三","四","五","六","七","八","九","十","零"]
print(random.choice(f_name)+random.choice(s_name))
print(str(random.randint(0, 10 ** lengs - 1)).zfill(lengs))
datetime
import datetime
datetime.datetime.now().month
(datetime.datetime.now() + datetime.timedelta(days=tmpdays)).year
(datetime.datetime.now() + datetime.timedelta(days=tmpdays)).month
(datetime.datetime.now() + datetime.timedelta(days=tmpdays)).day
datetime.datetime.now().strftime('%Y%m%d_%H%M%S_%f')
.strptime()
'%-m-%-d'
calendar
import calendar
calendar.setfirstweekday(calendar.SUNDAY)
print(calendar.monthcalendar(year, month))
PIL
from PIL import Image
Image.open(pic_path).getpixel((x_position, y_position))
杂
用os.path.sep
代替路径中的/
pip show lmdb
unicode(path,'utf8')
# -*- coding:utf-8 -*-
setup.py install
"%.2f"%xxxxx