import time
隨機生成出生日期
'''
def get_birthday():
start_birthday = (1970,10,10,1,10,10,10,10,10) #設置開始時間元組
end_birthday = (2020,5,5,10,10,10,10,10,10) #設置結束時間元組
start = time.mktime(start_birthday) #生成開始時間戳
end = time.mktime(end_birthday) #生成結束時間戳
for i in range(1):
s = random.randint(start,end) #選擇一個開始時間和結束時間
date_touole = time.localtime(s) #將時間生成元組
date = time.strftime("%Y-%m-%d",date_touole) #時間元組轉換成格式化字符串
return date