02 2022 档案
摘要:from datetime import datetime t = datetime.now() now_time = t.isoformat(sep=' ', timespec='seconds')
阅读全文
摘要:颜色方案 list(plt.colormaps.keys()) import numpy as np import matplotlib.pyplot as plt category_names = ['Strongly disagree', 'Disagree', 'Neither agree n
阅读全文
摘要:https://www.jb51.net/article/172873.htm limit: Number.MAX_VALUE
阅读全文
摘要:DELETE 别名 FROM 表名 别名 WHERE 别名.字段1 = '值' and 别名.字段2 = '值2'
阅读全文
摘要:import MySQLdb # 打开数据库连接 db = MySQLdb.connect("localhost", "testuser", "test123", "TESTDB", charset='utf8',port = 3306) # 使用cursor()方法获取操作游标 cursor =
阅读全文
摘要:https://www.cnblogs.com/randomlee/p/9752705.html pip install django-cors-headers==3.10.0 INSTALLED_APPS = [ ... 'corsheaders', ... ] MIDDLEWARE_CLASSE
阅读全文
摘要: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
阅读全文
摘要:当再出现游离的 HEAD 时,需要先对当前的分支,如 master 进行签出。 以后在进行添加代码内容时,先签出,然后再进行提交和推送。
阅读全文
摘要:df.to_csv('表名.csv',index = False,encoding='utf-8-sig')
阅读全文
摘要:now_time = datetime.now().isoformat(sep = ' ',timespec='seconds')
阅读全文
摘要:json.dumps(字典,ensure_ascii=False)
阅读全文
摘要:import warnings warnings.filterwarnings('ignore')
阅读全文