摘要:
需求.改写商品管理的程序,改为从数据库里面取数据 原代码为 import jsonFILE_NAME = 'a.json' #常量def read_products(): with open(FILE_NAME,encoding='utf-8') as fr: return json.load(fr 阅读全文
posted @ 2020-09-15 16:28
测试董先生
阅读(502)
评论(0)
推荐(0)
摘要:
需求:写一个函数,传入一个表名,把这个表里面的数据导出到excel中 def export_excel('students'): pass students.xls import pymysql ,xlwtname=input('输入你要传入的表名:').strip()#连接数据库connect = 阅读全文
posted @ 2020-09-15 11:20
测试董先生
阅读(470)
评论(0)
推荐(0)
浙公网安备 33010602011771号