上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: ATM机+购物车 自己敲的: bin conf settings ''' 存放配置信息 ''' import os # 获取项目根目录 BASE_PATH = os.path.dirname( os.path.dirname(__file__) ) # 获取user_data文件夹目录路径 USER 阅读全文
posted @ 2020-04-01 23:40 凌醉枫 阅读(271) 评论(0) 推荐(0) 编辑
摘要: logging模块 import logging logging.basicConfig( # 1、日志输出位置:1、终端 2、文件 filename='access.log', # 不指定,默认打印到终端 # 2、日志格式 format='%(asctime)s - %(name)s - %(le 阅读全文
posted @ 2020-04-01 21:00 凌醉枫 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1、把登录与注册的密码都换成密文形式 import hashlib pwd = input('请输入密码:').strip() with open('db.txt','a',encoding='utf-8') as f: hash1 = hashlib.md5(pwd.encode('utf-8') 阅读全文
posted @ 2020-03-31 22:12 凌醉枫 阅读(164) 评论(0) 推荐(0) 编辑
摘要: json与pickle模块 1、什么是序列化&反序列化内存中的数据类型 >序列化 >特定的格式(json格式或者pickle格式)内存中的数据类型< 反序列化< 特定的格式(json格式或者pickle格式)土办法:{'aaa':111} >序列化str({'aaa':111}) >"{'aaa': 阅读全文
posted @ 2020-03-31 19:01 凌醉枫 阅读(333) 评论(0) 推荐(0) 编辑
摘要: Try to run this command from the system terminal. Make sure that you use the correct version of '... image.png PyCharm中导入flask这个module时遇到: Try to run 阅读全文
posted @ 2020-03-31 15:29 凌醉枫 阅读(32055) 评论(0) 推荐(0) 编辑
摘要: 1、检索文件夹大小的程序,要求执行方式如下 python3.8 run.py 文件夹 import osimport sys def get_file_size(files_list, size=0): for file in files_list: if not os.path.isfile(fi 阅读全文
posted @ 2020-03-30 22:44 凌醉枫 阅读(150) 评论(0) 推荐(0) 编辑
摘要: time模块 时间模块优先掌握的操作 一:timeimport time 时间分为三种格式: 1、时间戳:从1970年到现在经过的秒数 作用:用于时间间隔的计算 print(time.time()) 2、按照某种格式显示的时间:2020-03-30 11:11:11 作用:用于展示时间 print( 阅读全文
posted @ 2020-03-30 19:28 凌醉枫 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 小说阅读器 启动模块bin/start.py 1 import os 2 import sys 3 4 BASE_PATH=os.path.dirname(os.path.dirname(__file__)) 5 sys.path.append(BASE_PATH) 6 7 8 from core 阅读全文
posted @ 2020-03-30 08:27 凌醉枫 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 代码56——硬盘驱动问题,检查网络适配器 前言: 折腾我一下午,无法上网,代码都没法安心敲,干脆好好研究一波,吐血整理+自我处理,看官大大请推荐收藏,如需转载请注明出处,谢谢配合~~~ 可以用360扫描问题,会显示网络适配器出现黄色警告小三角 方法一:手动卸载网络适配器 右键点击驱动程序,然后选择卸 阅读全文
posted @ 2020-03-28 18:33 凌醉枫 阅读(10984) 评论(0) 推荐(0) 编辑
摘要: ccleaner使用教程 Cleaner是一款免费的系统优化和隐私保护工具,主要用来清除Windows系统不再使用的垃圾文件,以腾出更多硬盘空间。它的另一大功能是清除使用者的上网记录。CCleaner软件的体积小,运行速度却极快,可以对文件夹、历史记录、注册表及回收站等进行清理,附带软件卸载功能。 阅读全文
posted @ 2020-03-28 18:20 凌醉枫 阅读(4576) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页