02 2022 档案

摘要:from datetime import datetime t = datetime.now() now_time = t.isoformat(sep=' ', timespec='seconds') 阅读全文
posted @ 2022-02-25 09:39 Hany47315 编辑
摘要:颜色方案 list(plt.colormaps.keys()) import numpy as np import matplotlib.pyplot as plt category_names = ['Strongly disagree', 'Disagree', 'Neither agree n 阅读全文
posted @ 2022-02-21 14:15 Hany47315 编辑
摘要:https://www.jb51.net/article/172873.htm limit: Number.MAX_VALUE 阅读全文
posted @ 2022-02-19 11:18 Hany47315 编辑
摘要:DELETE 别名 FROM 表名 别名 WHERE 别名.字段1 = '值' and 别名.字段2 = '值2' 阅读全文
posted @ 2022-02-19 10:34 Hany47315 编辑
摘要:import MySQLdb # 打开数据库连接 db = MySQLdb.connect("localhost", "testuser", "test123", "TESTDB", charset='utf8',port = 3306) # 使用cursor()方法获取操作游标 cursor = 阅读全文
posted @ 2022-02-16 16:44 Hany47315 编辑
摘要:https://www.cnblogs.com/randomlee/p/9752705.html pip install django-cors-headers==3.10.0 INSTALLED_APPS = [ ... 'corsheaders', ... ] MIDDLEWARE_CLASSE 阅读全文
posted @ 2022-02-15 16:50 Hany47315 编辑
摘要:import shutil import os def del_file(filepath): try: del_list = os.listdir(filepath) except Exception as e: return for f in del_list: file_path = os.p 阅读全文
posted @ 2022-02-15 10:30 Hany47315 编辑
摘要:当再出现游离的 HEAD 时,需要先对当前的分支,如 master 进行签出。 以后在进行添加代码内容时,先签出,然后再进行提交和推送。 阅读全文
posted @ 2022-02-15 10:26 Hany47315 编辑
摘要:df.to_csv('表名.csv',index = False,encoding='utf-8-sig') 阅读全文
posted @ 2022-02-12 16:02 Hany47315 编辑
摘要:now_time = datetime.now().isoformat(sep = ' ',timespec='seconds') 阅读全文
posted @ 2022-02-12 16:01 Hany47315 编辑
摘要:json.dumps(字典,ensure_ascii=False) 阅读全文
posted @ 2022-02-12 16:00 Hany47315 编辑
摘要:import warnings warnings.filterwarnings('ignore') 阅读全文
posted @ 2022-02-12 15:59 Hany47315 编辑

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