摘要:
PyCharm设置代码模板:自动生成文件名、作者、创建日期等信息避免每次新建项目文件时添加注释文件名、作者、创建日期等信息,则可以设置较好的代码模板,在创建文件时自动生成相关信息。设置步骤:打开PyCharm,选择File --> Settings --> Editor --> Code Style 阅读全文
摘要:
import syssys.path.insert(0,"..") 阅读全文
摘要:
from sqlalchemy import Column, String, create_engine,Integerfrom sqlalchemy.orm import sessionmakerfrom sqlalchemy.ext.declarative import declarative_ 阅读全文
摘要:
if __name__ == "__main__": print get_date_list('2018-01-01', '2018-02-28')为了调用datetime等这些已有的库,你需要在文件最上方加入引用语句:import timefrom datetime import datetime 阅读全文
摘要:
date -s 修改时间看下面的例子#date -s 04/06/2017(将系统日期设定为2017年04月06日) date -s 10:21(将系统时间设定为上午 10:21) 查看时间date -R 阅读全文
摘要:
tail -f logs/xxx.log |grep --line-buffered "关键字" 阅读全文
摘要:
git强制覆盖: git fetch --all git reset --hard origin/master git pull git强制覆盖本地命令(单条执行): git fetch --all && git reset --hard origin/master && git pull 第一个是 阅读全文
摘要:
查看端口运行的命令和执行的时间,将端口运行时间长的杀死 select * from information_schema.innodb_trx; kill 端口号; 阅读全文