04 2020 档案

摘要:https://www.cnblogs.com/zhouerba/p/12100515.html 1、看python安装目录下中是否已安装该模块:E:\software\python\Lib\site-packages下 2、若没有安装使用pip安装,见“pip的使用”;若已安装,则检查pychar 阅读全文
posted @ 2020-04-23 11:59 yescarf 阅读(600) 评论(0) 推荐(0) 编辑
摘要:docx模块 python在安装时,默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报错UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in ran 阅读全文
posted @ 2020-04-17 15:08 yescarf 阅读(622) 评论(0) 推荐(0) 编辑
摘要:CSV模块的使用 #!/usr/bin/env python# -*- coding:utf-8 -*- import csvimport osprint(os.getcwd())os.chdir(r'C:\Users\yeweijian.scarfgw')print(os.listdir())c= 阅读全文
posted @ 2020-04-15 13:14 yescarf 阅读(768) 评论(0) 推荐(0) 编辑
摘要:enumerate函数的使用 lista = ['xiawang\n','小王\n','135\n'] b= enumerate(lista) print(b) print(list(b)) #enumerate 枚举 a=[temp+'#'+str(index)for index,temp in 阅读全文
posted @ 2020-04-15 13:11 yescarf 阅读(144) 评论(0) 推荐(0) 编辑
摘要:列表处理列表拆分 阅读全文
posted @ 2020-04-15 13:05 yescarf 阅读(1127) 评论(0) 推荐(0) 编辑
摘要:字符串修改 阅读全文
posted @ 2020-04-10 09:58 yescarf 阅读(173) 评论(0) 推荐(0) 编辑
摘要:操作:关于文本写入中的 r,w,a,b,+的操作 https://blog.csdn.net/qq_38059635/article/details/81606977 1.文件写入关闭(注意操作程序目录地址) #简单文件写入程序 open write f= open('mytest1.txt','w 阅读全文
posted @ 2020-04-08 19:08 yescarf 阅读(255) 评论(0) 推荐(0) 编辑
摘要:python pip 安装, python不是内部或外部命令,也不是可运行程序,pip不是内部或外部命令,也不是可运行程序 阅读全文
posted @ 2020-04-08 00:54 yescarf 阅读(586) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示