lookdiv激活码获取
lookdiv.com 秘钥:www.lookdiv.com
共享鼠标键盘
手机微信清除缓存
debugx5.qq.com
安装node
pycharm永久激活
navicat永久激活
linux安装nginx
linux安装视频教程
靠谱的nginx
微信支付
安装yapi
yapi
初始化管理员账号成功,账号名:"admin@admin.com",密码:"ymfe.org" 部署成功,请切换到部署目录,输入: "node vendors/server/app.js" 指令启动服务器, 然后在浏览器打开 http://127.0.0.1:3000 访问
启动mongo--systemctl start mongod
Django ORM操作
思否--一个非常好用的网站
Django博客开发
胡杨Django博客
Django官网
docs.djangoproject.com/zh-hans/3.0…
掘金
大力盘
Django cookiecutter
git@github.com:pydanny/cookiecutter-django.git
/root/.local/share/virtualenvs/root-BuDEOXnJ Authorization
阿里云centos7升级python3.6.3
安装python3.7 pip3.7 去哪里了?
Django REST framework中文文档
值得关注的10个Python语言博客
python知识点github
Default server or group of servers is not configured.Nothing would be uploaded automatically
Centos 7 Nginx安装与配置
查看端口
netstat -ltunp
mysql为表加上创建时间和更新时间(表存在)
ALTER TABLE tiku_zhiye ADD COLUMN create_time timestamp NULL DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER create_time;
建表时加上create_time和update_time(表不存在)
-- 创建用户
CREATE TABLE `user`(
`id` INT UNSIGNED AUTO_INCREMENT,
PRIMARY KEY (id),
`name` VARCHAR(100) NOT NULL,
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp
)ENGINE=INNODB DEFAULT CHARSET=utf8;
表存在而且字段也存在的时候让create_time和update_time实现自增
alter table user modify column create_time timestamp not null default current_timestamp;
alter table t_user modify column update_time timestamp not null default current_timestamp on update current_timestamp;
图床
启动yapi
node /home/project/yapi/my-yapi/vendors/server/app.js nohup &
测试api
yapi.demo.qunar.com/add-project username: andy password; andy
车亮亮Django博客系统
Flask使用原生sql
from CarApp.model.base import db
db.session.execute('sql语句')
Django使用原生sql
from django.db import connection
sql = """select count(company_id) as num from customer_service_comment where company_id={}"""
cursor = connection.cursor()
cursor.execute(sql.format(company_id))
return cursor.fetchone()[0]
go博客
cnblogs.com/qicun/
npm,node升级
# 先安装模块n
npm install n -g
# 将 node 升级到最新稳定版
n stable
# 将 npm 升级到最新版
npm install npm -g
# 如果要指定版本,可以通过@指定版本
# npm install npm@3.10.10 -g
安装python3
安装node
Python 之 asyncio
jets激活
python弹框操作
import tkinter
import tkinter.messagebox
tkinter.message.showinfo("人生苦短,勇哥牛X")
python文件打包成可执行文件
pip install pyinstaller
# 安装完成之后,我们就可以在命令行界面直接调用
pyinstaller
#命令来对 Python 代码程序进行打包。Pyinstaller 中有很多的参数可以供我们使用,但是最常用的还是以下几个:
-F:生成单个 exe 可执行文件;
-w:去除控制台窗口;
-i:指定程序的图标;
pyinstaller -F -w mainUI.py
当我们在装Python虚拟环境的时候出现workon:command not found
vim ~/.bashrc
# 添加下面这段代码
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
# 然后esc+:wq
# 在外层输入
source .bashrc # 实现资源的刷新