上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: import urllib.request import json import requests import re import tkinter as tk import tkinter.messagebox as message import webbrowser class Video: d 阅读全文
posted @ 2020-07-23 22:10 Hany47315 阅读(1448) 评论(0) 推荐(0) 编辑
摘要: 终于可以在假期开始学习 Django 啦 !😀 安装 django 1.11.14 pip install django==1.11.14 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 卸载 django 1.11 阅读全文
posted @ 2020-07-23 17:36 Hany47315 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 在线生成图标网站 http://www.ico51.cn/ 打包命令(带图标) pyinstaller -F -i 图标名称.ico 文件名.py 不带图标 pyinstaller -F 文件名.py 在前一篇中,爬取了自己的博客标题和文章链接. 感觉还可以,方便了查看以前的文档,因此专门研发了一款 阅读全文
posted @ 2020-07-21 13:35 Hany47315 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 本随笔是为了方便查找以前写过的博客内容.将第一篇随笔到最后一篇的汇总. Python编程语言简介 https://www.cnblogs.com/hany-postq473111315/p/12256134.html Python环境搭建及中文编码 https://www.cnblogs.com/h 阅读全文
posted @ 2020-07-21 11:14 Hany47315 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 3、WEB框架 MVC Model View Controller 数据库 模板文件 业务处理 MTV Model Template View 数据库 模板文件 业务处理 ############## WEB:MVC、MTV 4、Django pip3 install django C:\Pytho 阅读全文
posted @ 2020-07-19 13:54 Hany47315 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 爬虫基础 导包 import requests from urllib.parse import urlencode # 导入解析模块 from urllib.request import Request # Request 请求 from urllib.parse import quote # 使 阅读全文
posted @ 2020-07-15 16:10 Hany47315 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #coding=gbk import requests from fake_useragent import UserAgent from lxml import etree import urllib import re import os pattern = 'https://(.+?)\.(. 阅读全文
posted @ 2020-07-15 16:04 Hany47315 阅读(661) 评论(0) 推荐(0) 编辑
摘要: #coding=gbk import requests from fake_useragent import UserAgent from lxml import etree url = 'https://www.81zw.com/book/32934/' headers = { 'User-Age 阅读全文
posted @ 2020-07-15 15:57 Hany47315 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Biopython 第三方库示例 https://biopython-cn.readthedocs.io/zh_CN/latest/ 阅读全文
posted @ 2020-07-10 12:57 Hany47315 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Statsmodels 示例 https://www.statsmodels.org/stable/examples/index.html 阅读全文
posted @ 2020-07-10 12:19 Hany47315 阅读(931) 评论(0) 推荐(0) 编辑
摘要: matplotlib https://matplotlib.org/index.html 阅读全文
posted @ 2020-07-10 12:11 Hany47315 阅读(101) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/webRobot/p/9431368.html 阅读全文
posted @ 2020-07-10 11:56 Hany47315 阅读(193) 评论(0) 推荐(0) 编辑
摘要: https://scikit-learn.org/stable/tutorial/machine_learning_map/index.html http://archive.ics.uci.edu/ml/index.php 阅读全文
posted @ 2020-07-10 11:28 Hany47315 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 菜鸟教程 https://www.runoob.com/python3/python3-tutorial.html https://www.runoob.com/python/python-tutorial.html IT技术速查手册 http://www.dba.cn/book/python/ h 阅读全文
posted @ 2020-07-08 11:16 Hany47315 阅读(691) 评论(0) 推荐(1) 编辑
摘要: linestyle(ls)线型参数表 常用color(c)参数表 marker标记符号表 plt常用方法表 plt.legend(loc=0)用于显示图例,图例的位置参数loc matplotlib常用图形类型 df.plot()方法 参数 阅读全文
posted @ 2020-07-06 11:47 Hany47315 阅读(138) 评论(0) 推荐(0) 编辑
摘要: NumPy 的常用数据类型 np.random 随机数模块 阅读全文
posted @ 2020-07-06 11:41 Hany47315 阅读(364) 评论(0) 推荐(1) 编辑
摘要: Series对象的常用属性和方法 loc[ ]和iloc[ ]格式示例表 Pandas提供的数据整理方法 Pandas分组对象的属性和方法 date_range函数的常用freq参数表 阅读全文
posted @ 2020-07-06 11:39 Hany47315 阅读(511) 评论(0) 推荐(0) 编辑
摘要: os.rename("wt.txt", "wtt.txt") 将当前文件夹下的文件"wt.txt"重命名为"wtt.txt"。 os.rename("wt.txt", ".\\tmh\\wtt.txt") 将当前文件夹下的文件"wt.txt"复制到当前文件夹的子文件夹"tmh"中。 os.remov 阅读全文
posted @ 2020-07-06 11:33 Hany47315 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install openpyxl 1.创建Excel电子表格 建立新文档需要调用Workbook对象的save方法,一个Workbook对象代表一个Excel工作簿,该方法的参数是保存的文件名。 from openpyxl import Workbook wb = Workbook() 阅读全文
posted @ 2020-07-06 11:30 Hany47315 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install python-docx 1.建立新Word文档 建立新文档需要调用Document对象的save方法,一个Document对象代表一个Word文档,该方法的参数是保存的文件名。 from docx import Document doc = Document() doc 阅读全文
posted @ 2020-07-06 11:27 Hany47315 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 文件是指存储在外部存储器中的一组信息集合 按照文件的数据组织形式,文件分为文本文件和二进制文件两种 用内置函数open打开文件 f = open(文件名, 文件模式, 编码方式, 缓冲区大小) Python默认按操作系统平台的编码处理文件,windows系统默认编码为GBK,打开该文件时需指定这种编 阅读全文
posted @ 2020-07-06 11:22 Hany47315 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 17:52 Hany47315 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 17:48 Hany47315 阅读(425) 评论(0) 推荐(0) 编辑
摘要: jieba库的作用就是对中文文章进行分词,提取中文文章中的词语 cut(字符串, cut_all,HMM) 字符串是要进行分词的字符串对象 cut_all参数为真表示采用全模式分词,为假表示采用精确模式分词,默认值为假; HMM为真表示采用HMM模型,为假则不采用,默认值为真。 精确模式jieba. 阅读全文
posted @ 2020-07-05 17:46 Hany47315 阅读(8159) 评论(0) 推荐(0) 编辑
摘要: 函数调用的一般形式 函数递归调用 阅读全文
posted @ 2020-07-05 17:31 Hany47315 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 单分支选择结构 多分支选择结构 循环结构 阅读全文
posted @ 2020-07-05 17:22 Hany47315 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 列表 常用的序列操作函数 字典 修改: values() 返回所有值 集合 阅读全文
posted @ 2020-07-05 17:20 Hany47315 阅读(131) 评论(0) 推荐(0) 编辑
摘要: datatime模块重新封装了time模块,它以类的方式提供了多种日期和时间的表达方式 提供的类有:datetime.date、datetime.time、datetime.datetime、datetime.timedelta和datetime.tzinfo。 datetime.datetime类 阅读全文
posted @ 2020-07-05 17:12 Hany47315 阅读(119) 评论(0) 推荐(0) 编辑
摘要: time模块中表示时间的格式主要有三种: (1)时间戳 时间戳表示是从1970年1月1号 00:00:00开始到现在按秒计算的总秒数。这种时间表示方式广泛的应用在Unix系统和类Unix系统中。 (2)时间元组 Python在 time 模块内提供了一个 time.struct_time 类,该类代 阅读全文
posted @ 2020-07-05 17:09 Hany47315 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 17:06 Hany47315 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 17:05 Hany47315 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 17:03 Hany47315 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 17:02 Hany47315 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 16:59 Hany47315 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 16:58 Hany47315 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 算术运算符:-(求负)、+、-、*、/、//、%、** 关系运算符:==、!=、>、>=、<、<= 逻辑运算符:not、and、or 赋值运算符:=、+=、-=、*=、/=、%=、**=、//= 位运算符:&、|、^、~、<<、>> 成员运算符:in、not in 身份运算符:is、is not 阅读全文
posted @ 2020-07-05 16:56 Hany47315 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 16:52 Hany47315 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-05 16:50 Hany47315 阅读(249) 评论(0) 推荐(0) 编辑
摘要: '{格式字符串}'.format(参数) 格式字符串:普通字符串和{替换格式符}组成的字符串 参数:匹配替换的内容 格式说明标记的语法格式为: [ [fill] align] [sign] [width] [,] [.precision] [type] fill:设置填充的字符,可省略,默认为空格; 阅读全文
posted @ 2020-07-03 22:48 Hany47315 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-03 22:42 Hany47315 阅读(83) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
点击右上角即可分享
微信分享提示