上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: Git版本控制工具 Git安装:下载地址 https://git-scm.com/downloads Git Diff解决冲突工具 https://www.scootersoftware.com/download.php 学习笔记PDF格式 点击我打开浏览 视频链接 分享链接 访问密码:1zFLQ 阅读全文
posted @ 2021-03-30 13:17 zhangdingqu 阅读(58) 评论(0) 推荐(0)
摘要: 参考链接 // 导出数据模块 function data_to_csv(data, name) { const blob = new Blob(data, {type: 'text/csv,charset=UTF-8'}); const uri = URL.createObjectURL(blob) 阅读全文
posted @ 2021-02-24 17:01 zhangdingqu 阅读(1372) 评论(0) 推荐(0)
摘要: Python写入csv文件用Excel打开乱码主要是编码格式不对,不能使用utf-8;改为encoding='GB18030'即可解决 import csvdef save_csv(kw_list): with open('kw.csv', 'a', newline='', encoding='GB 阅读全文
posted @ 2021-02-10 10:16 zhangdingqu 阅读(1603) 评论(0) 推荐(0)
摘要: 一、需要用到的库: 1.操作xls格式的表格文件: 读取:xlrd 写入:xlwt 修改(追加写入):xlutils 2.操作xlsx格式的表格文件: 读取/写入:openpyxl 二、实现代码 1.操作xls格式的表格文件: # coding=UTF-8 import xlrd import xl 阅读全文
posted @ 2021-02-09 15:29 zhangdingqu 阅读(2012) 评论(0) 推荐(0)
摘要: 今天介绍个神奇的网站!堪称爬虫偷懒的神器! 我们在写爬虫,构建网络请求的时候,不可避免地要添加请求头( headers ),以 mdn 学习区为例,我们的请求头是这样的: 一般来说,我们只要添加 user-agent 就能满足绝大部分需求了,Python 代码如下: import requests 阅读全文
posted @ 2021-02-09 13:47 zhangdingqu 阅读(1038) 评论(0) 推荐(0)
摘要: 阅读目录(Content) python列表中元素去重的几种方式 去重 1 2 3 4 5 6 7 8 from functools import reduce #导入排序模块 def list_dict_duplicate_removal(): data_list = [{"a": "123",  阅读全文
posted @ 2021-02-08 19:09 zhangdingqu 阅读(2039) 评论(0) 推荐(0)
摘要: # 把csv转xlsimport pandas as pddf = pd.read_csv('data.csv', encoding='GB18030')df.to_excel('data.xls', index=False) 阅读全文
posted @ 2021-01-09 17:51 zhangdingqu 阅读(136) 评论(0) 推荐(0)
摘要: 用资源管理器显示文件 os.system("explorer.exe /select, %s") pyinstaller1打包 pyinstaller -F -w --icon=icon.ico xxxxx.py Python——pyqt5——消息框(QMessageBox) #消息框 #self 阅读全文
posted @ 2020-03-27 17:37 zhangdingqu 阅读(593) 评论(0) 推荐(0)
摘要: import sys from PyQt5.QtWidgets import QApplication,QWidget if __name__ == '__main__': #创建QApplication类实例 app=QApplication(sys.argv) #创建一个窗口 w=QWidget 阅读全文
posted @ 2020-02-24 15:08 zhangdingqu 阅读(336) 评论(0) 推荐(0)
摘要: import os #https://jingyan.baidu.com/article/a3761b2bc78d731576f9aaa5.html def get_data(path): print(path) def bianli(rootDir): for root,dirs,files in 阅读全文
posted @ 2020-01-31 14:24 zhangdingqu 阅读(179) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页