吴先生不爱吃辣

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2020年10月16日

摘要: 1、概念 字符“hello world" 是unicode 字符集,utf-8和gbk为字符编码方式。 ASCll有编码方式和ASCII字符集 编码:是将对应的字符集中的的字符转化为二进制存储,打印时方便看自动转为16进制 解码:是将二进制的数据转化成对应字符集中的字符。 2、Unicode使用 3 阅读全文
posted @ 2020-10-16 23:50 吴先生不爱吃辣 阅读(172) 评论(0) 推荐(0) 编辑

2020年10月15日

摘要: 1、计算函数耗时的装饰器 import time from functools import wraps def print_info(f): """ @para: f, 入参函数名称 """ @wraps(f) # 确保函数f名称等属性不发生改变 def info(): print('正在调用函数 阅读全文
posted @ 2020-10-15 23:44 吴先生不爱吃辣 阅读(76) 评论(0) 推荐(0) 编辑

2020年8月6日

摘要: pyinstaller 常用的命令 --hidden-import :当打包报错,no modult name xxx时可以使用这个命令或者,先在本地环境中安装本模块。 pyinstaller --hidden-import=xxx test.py 给应用程序加上图标 注意:使用的图片必须是.ico 阅读全文
posted @ 2020-08-06 23:43 吴先生不爱吃辣 阅读(632) 评论(0) 推荐(0) 编辑

2020年8月5日

摘要: 1.安装 pip install tenacity -i https://pypi.douban.com/simple 最基本的重试 无条件重试,重试之间无间隔,报错之后就立马重试 from tenacity import retry @retry def test_retry(): print(" 阅读全文
posted @ 2020-08-05 23:52 吴先生不爱吃辣 阅读(629) 评论(0) 推荐(1) 编辑

2020年8月4日

摘要: from elasticsearch import Elasticsearch class elasticSearch(): def __init__(self, index_type: str, index_name: str, ip="127.0.0.1"): # self.es = Elast 阅读全文
posted @ 2020-08-04 23:50 吴先生不爱吃辣 阅读(151) 评论(0) 推荐(0) 编辑

2020年8月3日

摘要: import osfrom logging import configstandard_format = '[%(asctime)s][%(threadName)s:%(thread)d][%(filename)s:%(lineno)d]' \ '[%(levelname)s][%(message) 阅读全文
posted @ 2020-08-03 23:44 吴先生不爱吃辣 阅读(134) 评论(0) 推荐(0) 编辑

2020年7月26日

摘要: 安装wxpython 及其他依赖 #1 安装wxFormBuolder https://sourceforge.net/projects/wxformbuilder/ #2 安装wxpython pip install wxPython -i https://pypi.douban.com/simp 阅读全文
posted @ 2020-07-26 23:34 吴先生不爱吃辣 阅读(104) 评论(0) 推荐(0) 编辑

2020年7月22日

摘要: http://blog.csdn.net/pipisorry/article/details/39909057# 目录(?)[+] pycharm学习技巧 Learning tips PyCharm30默认快捷键翻译的 pycharm常用设置 pycharm环境和路径配置 python解释器路径 p 阅读全文
posted @ 2020-07-22 22:28 吴先生不爱吃辣 阅读(363) 评论(0) 推荐(0) 编辑

2020年7月10日

摘要: import sys import time from threading import Thread from PyQt5.QtWidgets import QApplication,QMainWindow from submit import Ui_MainWindow def click_su 阅读全文
posted @ 2020-07-10 01:21 吴先生不爱吃辣 阅读(239) 评论(0) 推荐(0) 编辑

2020年7月9日

摘要: https://www.cnblogs.com/alex3714/articles/5248247.html #异步IO\数据库\队列\缓存 https://www.cnblogs.com/alex3714/articles/5930846.html #git &github 快速入门 https: 阅读全文
posted @ 2020-07-09 23:51 吴先生不爱吃辣 阅读(107) 评论(0) 推荐(0) 编辑