摘要: 1.将excel里的有效数据提取出来 import xlrd import os path="text" #创建文件“text” def readexcel(): dable=xlrd.open_workbook('考生号码.xls') #打开excel table=dable.sheets()[0 阅读全文
posted @ 2020-01-26 17:29 cuizero0 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 一、1.while循环语句的用法while 条件: 子代模块2.while语法说明 函数名为while循环判断条件,当值为True时,继续执行子代码;当值为False时,终止循环。 3.嵌套a,b=0,2while a<=0: while a<b: print("%s"%((a+1)*b)) b-= 阅读全文
posted @ 2020-01-26 16:11 cuizero0 阅读(191) 评论(0) 推荐(0) 编辑