会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wstong2052
博客园
首页
新随笔
管理
上一页
1
2
3
4
5
6
7
8
下一页
2023年7月16日
python - SymPy
摘要: ``` pip install sympy ``` ``` import sympy ``` ```py # 虚数单位i sympy.I # 𝑖 sympy.I ** 2 # -1 sympy.sqrt(-1) # 𝑖 # 自然对数的底e sympy.E # e sympy.log(sympy.
阅读全文
posted @ 2023-07-16 01:15 wstong
阅读(71)
评论(0)
推荐(0)
2023年7月15日
scrcpy - 投屏工具
摘要: ### 1. 下载工具 github地址:https://github.com/Genymobile/scrcpy 下载win64版本 ### 2. 手机准备 启用开发者选项里面的usb调试和usb调试(安全设置) 
评论(0)
推荐(0)
2023年7月9日
python - jionlp地址解析库
摘要: ### 1. jionlp安装 ``` pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jionlp ``` github地址 https://github.com/dongrixinyu/JioNLP ### 2. 简单使用 ```
阅读全文
posted @ 2023-07-09 21:04 wstong
阅读(1370)
评论(0)
推荐(0)
2023年7月7日
python - IllegalCharacterError解决方案
摘要: 在使用pandas写excel时,报了IllegalCharacterError的错误,发现是存在非法字符造成的,使用xlsxwriter模块可以解决这个问题 ```py import xlsxwriter data.to_excel('out.xlsx', engine='xlsxwriter')
阅读全文
posted @ 2023-07-07 21:07 wstong
阅读(706)
评论(0)
推荐(0)
2023年7月1日
数据库 - where后面字符串转数字
摘要: FillerOrderNumber列的类型为TEXT,里面的值为  
评论(0)
推荐(0)
2023年6月30日
python - 二分查找
摘要: ```py a = [1,3,5,7,9] # 查找第一个大于等于x的位置 def lower_bound(l, r, x): while l <= r: mid = (l+r) // 2 if a[mid] < x: l = mid + 1 else: r = mid - 1 return l #
阅读全文
posted @ 2023-06-30 12:53 wstong
阅读(27)
评论(0)
推荐(0)
2023年6月29日
python - 计算日期差
摘要: ```py import time import datetime def CalTime(date1, date2): # %Y-%m-%d %H:%M:%S为日期格式 # date1 = time.strptime(date1, '%Y-%m-%d %H:%M:%S') # date2 = ti
阅读全文
posted @ 2023-06-29 16:28 wstong
阅读(267)
评论(0)
推荐(0)
2023年6月21日
jsonp 使用(Flask + python)
摘要: ### 1.web端控制台代码 ``` const successCallback = function(data) { console.log(data); } var import_js = document.createElement('script'); import_js.setAttri
阅读全文
posted @ 2023-06-21 20:11 wstong
阅读(63)
评论(0)
推荐(0)
浏览器控制台保存json
摘要: 先定义以下函数,然后使用console.save()来保存 ``` (function (console) { console.save = function (data, filename) { let MIME_TYPE = "text/json"; if (!data) return; if
阅读全文
posted @ 2023-06-21 08:25 wstong
阅读(220)
评论(0)
推荐(0)
2023年6月17日
JavaScript - 拦截XMLHttpRequest
摘要: 需要做一个扩展,拦截XMLHttpRequest,修改response里面部分值,查阅资料后一般是通过下面方法拦截 ``` let oldOpen = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function(me
阅读全文
posted @ 2023-06-17 16:42 wstong
阅读(1609)
评论(1)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告