清华大学镜像:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ 模块名
阿里云镜像:
pip install -i https://mirrors.aliyun.com/pypi/simple/ 模块名
豆瓣镜像:
pip install -i https://pypi.doubanio.com/simple/ 模块名
中科大镜像:
pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/ 模块名
腾讯镜像:
pip install -i https://mirrors.cloud.tencent.com/pypi/simple/ 模块名
js设定cookie随着浏览器关闭而清除。
function setCookie(cname, cvalue, exdays = 0) {
cvalue = encodeURIComponent(JSON.stringify(cvalue));
if (exdays > 0) {
var d = new Date().getTime() + exdays * 24 * 3600 * 1000 + 8 * 3600 * 1000;
var expires = "expires=" + new Date(d).toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
} else {
document.cookie = cname + "=" + cvalue + ";" + ";path=/";
}
}
.py文件直接点击运行
#!/usr/bin/env python3