会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
OTAKU_nicole
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
24
下一页
2023年2月13日
python配置虚拟环境
摘要: 首先安装 pip install virtualenv pip install virtualenvwrapper 创建虚拟环境:mkvirtualenv 虚拟环境名称 列出所有虚拟环境:lsvirtualenv 切换虚拟环境:workon 虚拟环境名称 切换到当前虚拟环境目录下:cdvirtual
阅读全文
posted @ 2023-02-13 23:43 OTAKU_nicole
阅读(46)
评论(0)
推荐(0)
2023年1月19日
python操作mysql基础
摘要: import pymysql config = { 'host': '127.0.0.1', 'port': 3306, 'user': 'root', 'password': 'root', 'database': 'sys', 'cursorclass': pymysql.cursors.Dic
阅读全文
posted @ 2023-01-19 16:48 OTAKU_nicole
阅读(20)
评论(0)
推荐(0)
2022年8月26日
jenkins查看测试报告不显示格式的问题
摘要: 打开Dashboard-Manage Jenkins-Script Console 运行 System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
阅读全文
posted @ 2022-08-26 16:41 OTAKU_nicole
阅读(39)
评论(0)
推荐(0)
2022年8月18日
python正则表达式,根据左右关键字,匹配中间内容
摘要: import re stringA = "abcdefghijk" pattern = re.compile(r'd(.+?)h') # 匹配d和h中间的内容 print(re.findall(pattern, stringA)) # ['efg'] stringB = "abcdefg(pytho
阅读全文
posted @ 2022-08-18 17:41 OTAKU_nicole
阅读(344)
评论(0)
推荐(0)
2022年8月2日
python requests设置代理
摘要: import requests url = "https://***" payload={} proxies = {"http": "http://127.0.0.1:8080", "https": "http://127.0.0.1:8080"} headers = { 'Cookie': 'Co
阅读全文
posted @ 2022-08-02 10:25 OTAKU_nicole
阅读(1393)
评论(0)
推荐(0)
2022年7月11日
python测试websocket接口
摘要: import json from websocket._core import create_connection # 安装 websocket-client host = "wss://****" ws = create_connection(host,timeout=3) try: # 发送da
阅读全文
posted @ 2022-07-11 17:49 OTAKU_nicole
阅读(122)
评论(0)
推荐(0)
2022年7月7日
win10开热点之后电脑断网的问题
摘要: 卸载KB50146 这个更新补丁
阅读全文
posted @ 2022-07-07 18:22 OTAKU_nicole
阅读(50)
评论(0)
推荐(0)
2022年6月28日
python时间戳与日期相互转换
摘要: import time # 时间戳转日期 timeStamp = 1656399821 # 十位时间戳 timeArray = time.localtime(timeStamp) printDate = time.strftime("%Y-%m-%d %H:%M:%S", timeArray) pr
阅读全文
posted @ 2022-06-28 15:05 OTAKU_nicole
阅读(239)
评论(0)
推荐(0)
2022年6月21日
pycharm设置以pytest运行
摘要: File-Settings Tools-Python Intergrated Tools,Testing 选pytest,Apply 设置完成后,如果不能以pytest运行,继续操作,Edit Configurations 点-把现有模式全部删除 右键运行就会出现pytest了
阅读全文
posted @ 2022-06-21 17:21 OTAKU_nicole
阅读(427)
评论(0)
推荐(0)
2022年6月13日
burpsuite中文显示乱码的问题
摘要:
阅读全文
posted @ 2022-06-13 10:17 OTAKU_nicole
阅读(163)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
24
下一页
公告