摘要: #coding=gbk #coding=utf-8 import xlrd table = xlrd.open_workbook(r'E:\test.xlsx') #sheet = table.sheets()[0]#读取表格 #row = sheet.row_values(0)#读取一行 #row = sheet.row_values(0)[0]#读取某一行与某一列的交集 #col = she... 阅读全文
posted @ 2018-05-08 23:07 AIHEN 阅读(247) 评论(0) 推荐(0)
摘要: 执行结果如下: 第一次传参:You have 20 book!XiaoMing have 30 book!I LOVE PYTHON Get a book. 第二次传参:You have 6 book!XiaoMing have 6 book!I LOVE PYTHON Get a book. 第三 阅读全文
posted @ 2018-05-08 22:37 AIHEN 阅读(184) 评论(0) 推荐(0)
摘要: #coding=gbk #coding=utf-8 #定义函数 def print_two(*args): #定义形参 arg1, arg2 = args print("arg1: %r,arg2: %r" %(arg1,arg2)) #传入实参 print_two("a","b") def pri 阅读全文
posted @ 2018-05-07 22:43 AIHEN 阅读(232) 评论(0) 推荐(0)