上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: import pymysqldef connect_mysql(): conn = pymysql.connect("ip", "用户名", "密码", "需要连接的数据库", charset='utf8') cursor = conn.cursor() # sql = """CREATE TABL 阅读全文
posted @ 2020-09-14 15:35 乔儿 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-04 14:27 乔儿 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 下载安装文件:wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh 给安装文件赋予可执行权限:chmod 777 Miniconda3-latest-Linux-x86_64.sh 安装conda: 阅读全文
posted @ 2020-09-04 10:41 乔儿 阅读(5019) 评论(1) 推荐(0) 编辑
摘要: 1、下载压缩文件:wget https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-linux-i586.tar.gz?AuthParam=1599036362_c2b 阅读全文
posted @ 2020-09-04 10:40 乔儿 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 安装及启动docker: 1、安装docker:yum -y install docker 2、启动docker:systemctl start docker(查看docker是否启动:systemctl status docker) 3、设置开机启动docker:systemctl enable 阅读全文
posted @ 2020-09-01 18:39 乔儿 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 在保证其他条件不变的情况下(cpu、内存、访问接口的进程、相同的带宽等),改变processes和thread参数,然后访问量相比: 结论:processes和thread都会影响uwsgi的性能,其中processes的影响因素比较大,建议根据服务器的性能负载来增加(主要是cpu和内存,然后带宽也 阅读全文
posted @ 2020-08-18 17:33 乔儿 阅读(2284) 评论(0) 推荐(0) 编辑
摘要: 这里记录一下出现的问题; 使用Mac运行charles抓包是突然无法正常抓到数据包,按照网上的教程试了n遍,重装了n遍,还是解决不了这个问题。 然后就从网上疯狂的找原因,最后在一个不起眼的地方找到了解决办法,关闭电脑上面的vpn(比如shadowsock),然后重启charles,这就正常了。 阅读全文
posted @ 2020-08-07 16:43 乔儿 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: let express = require('express'); let app =express(); let bodyParser = require('body-parser'); //设置跨域访问 app.all('*', function (req, res, next) { res.h 阅读全文
posted @ 2020-07-23 14:09 乔儿 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: from urllib.parse import urlparseurl_change = urlparse('https://i.cnblogs.com/EditPosts.aspx?opt=1')#ParseResult(scheme='https', netloc='i.cnblogs.com 阅读全文
posted @ 2020-06-10 18:05 乔儿 阅读(205) 评论(0) 推荐(0) 编辑
摘要: import traceback try: xxxx except: error = traceback.format_exc() print(error) 这里区分于: try: xxxx except Exception as e: print(e) 前者可以针对error做特殊处理,而后者只可 阅读全文
posted @ 2020-06-05 14:48 乔儿 阅读(1178) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页