06 2021 档案

摘要:import osimport reimport requestsif not os.path.exists('./qiutuLibs'): os.mkdir('./qiutuLibs') url = 'https://www.qiushibaike.com/imgrank/' # '//www.q 阅读全文
posted @ 2021-06-30 21:52 索匣 阅读(32) 评论(0) 推荐(0) 编辑
摘要:import random from re import A """ 用户身份验证 version: 0.1 Author: jhk """ # uesname = input('请输入用户名:') # password = input('请输入口令:') # # 用户名是admin且密码是1234 阅读全文
posted @ 2021-06-28 21:34 索匣 阅读(56) 评论(0) 推荐(0) 编辑
摘要:name_list = ["zhangsan","lisi","wangwu"] # """ # 1.取值和索引 #list index out of range--列表索引超出范围 print(name_list[2]) #想确定数据的位置 print(name_list.index("lisi" 阅读全文
posted @ 2021-06-28 16:29 索匣 阅读(47) 评论(0) 推荐(0) 编辑
摘要:从本地上传代码到gitee 1.进入到本地需要往gitee上传的文件夹,右键点击选择git bash here。注意:如果此文件夹里有.get文件,请删除! 2.【1】输入命令 git init (为了给上传的文件夹添加.get 文件) 【2】输入命令 git remote add origin h 阅读全文
posted @ 2021-06-24 19:06 索匣 阅读(457) 评论(0) 推荐(0) 编辑
摘要:关于某库文档,道客某把打印下载 可使用稻壳阅读器 还可以使用冰点文库 阅读全文
posted @ 2021-06-18 20:01 索匣 阅读(53) 评论(0) 推荐(0) 编辑
摘要:models与admin 你只知道了模块models和admin的关系,模块中定义模板,就可通过同步数据库到后台窗口去了,而admin后台好像也可以自定义参数,好像是1版本才行。 views与html 再说说views时渲染返回视图,理应和templates模块下的index.html有关,html 阅读全文
posted @ 2021-06-18 19:55 索匣 阅读(43) 评论(0) 推荐(0) 编辑
摘要:w,r,a操作 import os with open('a.txt','wb') as fp; file = open('a.txt','w',encoding = 'utf-8') # w是覆盖并且重新写入 file.write('Python') # 文件的杜西呃怎么打印出来是个中文字符 # 阅读全文
posted @ 2021-06-03 19:32 索匣 阅读(161) 评论(0) 推荐(0) 编辑
摘要:# lst = [10, ['hello', 'world'], 20, 30, 100, ['hello', 'world'], 'hello', 'world'] # lst3 = [True,False,'hello'] lst[3:] = lst3 #[10, ['hello', 'worl 阅读全文
posted @ 2021-06-03 18:36 索匣 阅读(47) 评论(0) 推荐(0) 编辑
摘要:import requests import re import os url = 'https://www.qiushibaike.com/imgrank/page/%d/' # 用python的%d代表数字 又忘记加/左斜杠 for pageNum in range(1,11): # 大的for 阅读全文
posted @ 2021-06-02 20:33 索匣 阅读(87) 评论(0) 推荐(0) 编辑

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