BZ易风

导航

 
上一页 1 ··· 10 11 12 13 14

2019年3月19日

摘要: set = {1,2,3,('12','二')} 集合跟字典差不多,但没有键值对,其中不能放可变变量 特性:去重,无序 一。增:2种方式 1.add 添加为一个元素 set.add('名字'); //{'名字',1,2,3,('12','二')} 2.update 迭代添加 set..update( 阅读全文
posted @ 2019-03-19 23:21 BZ易风 阅读(117) 评论(0) 推荐(0) 编辑
 

2019年3月17日

摘要: str = 'abcdefg' str[首:尾:步长】 步长为负数的话是倒着取 阅读全文
posted @ 2019-03-17 13:00 BZ易风 阅读(112) 评论(0) 推荐(0) 编辑
 

2019年3月16日

摘要: %s d 等 占位 注意:格式化输出与%并用时需要要在%前再加一个%,不然会认为也需要占位而报错 阅读全文
posted @ 2019-03-16 13:38 BZ易风 阅读(143) 评论(0) 推荐(0) 编辑
 

2018年12月20日

摘要: function People(name,age){ this.name = name; this.age = age; this.run = function(){ alert(this.name+'在运动'); } } People.prototype.sex = '男'; People.pro 阅读全文
posted @ 2018-12-20 16:09 BZ易风 阅读(69) 评论(0) 推荐(0) 编辑
 
摘要: function People(){ this.name='zhangsan'; this.age = 20; this.run = fcuntion(){ alert(this.name+'在运动'); } } //原生链 People.prototype.sex = '男'; People.pr 阅读全文
posted @ 2018-12-20 15:59 BZ易风 阅读(249) 评论(0) 推荐(0) 编辑
 

2018年10月23日

摘要: xlwt引入xlwt,import xlwt 新建工作簿,xlsx = xlwt.Workbook( encoding="utf-8" ),参数:设置编码为utf-8 添加工作表,sheet = xlsx.add_sheet( "sheet1", True ),参数:工作表名称;是否允许覆盖写入,默 阅读全文
posted @ 2018-10-23 10:15 BZ易风 阅读(2414) 评论(0) 推荐(0) 编辑
 
摘要: python解决open()函数、xlrd.open_workbook()函数文件名包含中文,sheet名包含中文报错的问题 1、使用open()函数、xlrd.open_workbook()函数打开文件,文件名若包含中文,会报错找不到这个文件或目录。 2、获取sheet时若包含中文,也会报错。 f 阅读全文
posted @ 2018-10-23 09:51 BZ易风 阅读(411) 评论(0) 推荐(0) 编辑
 
摘要: 升级:python -m pip install --upgrade pip 读excel:pip install xlrd 写入excel:pip install xlwt pip install 包 的时候连接超时 配置新的pip安装下载镜像地址 在~目录下建一个.pip的目录:mkdir .p 阅读全文
posted @ 2018-10-23 09:23 BZ易风 阅读(181) 评论(0) 推荐(0) 编辑
 

2018年10月22日

摘要: 第一天入驻博客园,记录每天成长的点点滴滴 阅读全文
posted @ 2018-10-22 16:42 BZ易风 阅读(64) 评论(0) 推荐(0) 编辑
 
上一页 1 ··· 10 11 12 13 14