摘要: #coding=gbk #coding=utf-8 #-*- coding: UTF-8 -*- from encodings import utf_8 import random print('--------猜一猜游戏------------') num1 = int(input("请输入开始的区间数:")) num2 = int(input("请输入结束的区间数:")) number = ... 阅读全文
posted @ 2018-05-08 23:10 AIHEN 阅读(243) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(227) 评论(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 阅读(171) 评论(0) 推荐(0) 编辑