python3向数据库加入datetime时间
# 解释器python 3.7 C:\ProgramData\Anaconda3\python.exedb = pymysql.connect("IP","user","password","database")cursor = db.cursor()time = datetime.now().strftime("%Y-%m-%d %H-%M-%S")sql = ""&q
原创
2019-03-16 14:55:16 ·
5881 阅读 ·
0 评论