09 2021 档案

摘要:import xlrd import xlwt #读取excel文件 # hcz = 火车站 hcz = xlrd.open_workbook('D:\\pythontest\\火车站表1.xls')# 打开Excel文件 sheet = hcz.sheet_by_name('产品1') #通过ex 阅读全文
posted @ 2021-09-19 22:56 七彩木兰 阅读(170) 评论(0) 推荐(0)
摘要:def f(x,l=[]): for i in range(x): l.append(i*i) print(l) f(2) f(3,[3,2,1]) f(3)结果: [0, 1] [3, 2, 1, 0, 1, 4] [0, 1, 0, 1, 4] def f(x,l=[]): for i in r 阅读全文
posted @ 2021-09-13 20:23 七彩木兰 阅读(39) 评论(0) 推荐(0)