上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 126 下一页
摘要: 阅读全文
posted @ 2020-12-03 22:20 AngDH 阅读(69) 评论(0) 推荐(0)
摘要: uwsgi centos python3 flask 部署 1. 添加一个用户 新增用户 adduser python3 修改密码 passwd python3 添加到sudo用户组 gpasswd -a python3 wheel 切换到python3 用户 sudo -iu python3 注意 阅读全文
posted @ 2020-12-03 20:01 AngDH 阅读(397) 评论(0) 推荐(0)
摘要: 转载 https://stackoverflow.com/questions/12677246/twisted-adbapi-cp-reconnect-not-working/35178822重写adbapi.ConnectionPool class ReconnectingMySQLConnect 阅读全文
posted @ 2020-12-01 23:21 AngDH 阅读(437) 评论(0) 推荐(0)
摘要: cookie_dict = {} from scrapy.http.cookies import CookieJar cookie_jar = CookieJar() cookie_jar.extract_cookies(response, response.request) # logging.i 阅读全文
posted @ 2020-11-17 11:40 AngDH 阅读(2469) 评论(0) 推荐(0)
摘要: 1.全局环境下 的this 指向 window 2. 函数的独立调用,函数的内部的this也指向了window function fn(){ console.log(this); } fn(); 3. 当被嵌套的函数独立调用时候,this 默认指向了window var obj = { a:2, f 阅读全文
posted @ 2020-11-14 19:39 AngDH 阅读(111) 评论(0) 推荐(0)
摘要: 1.返回值 var fn = function (){ var name = 'asd'; return function(){ return name; }}var fnc = fn();console.log(fnc()); 2.函数赋值 一种变形的形式 是将内部函数赋值给一个外部的变量var 阅读全文
posted @ 2020-11-14 19:06 AngDH 阅读(294) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script type="text/javascript"> function a(){ va 阅读全文
posted @ 2020-11-14 17:12 AngDH 阅读(82) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/hng1992/article/details/89642251 from functools import reduce data_list = [{"a": "123", "b": "321"}, {"a": "123", "b": "321"}, { 阅读全文
posted @ 2020-11-09 19:18 AngDH 阅读(1053) 评论(0) 推荐(0)
摘要: pip install pyinstaller==3.1 打包 目标文件 pyinstaller -F xxx.py 阅读全文
posted @ 2020-10-26 13:33 AngDH 阅读(131) 评论(0) 推荐(0)
摘要: #查看ip print (os.popen('ipconfig').read().decode('cp936')) #查看 进程print (os.popen('tasklist /FI "IMAGENAME eq qq.exe').read().decode('cp936'))#kill 进程os 阅读全文
posted @ 2020-10-26 11:24 AngDH 阅读(540) 评论(0) 推荐(0)
上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 126 下一页