![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
沉思的雅典娜
我是一个爱学习的人
展开
-
url字符转二进制
url windows1252编码转二进制原创 2022-09-19 16:44:20 · 577 阅读 · 0 评论 -
python进行url decode出现乱码、问号
python进行url decode出现乱码、问号乱码原创 2022-08-31 16:28:49 · 995 阅读 · 0 评论 -
random shuffle注意
对数据处理,使用random shuffle的坑原创 2022-07-01 11:34:43 · 91 阅读 · 0 评论 -
import torchvision jupyter或者jupyter-lab崩溃(crash)
问题描述:当我在jupyter-lab中import torchvision的时候,jupyter kernel died,网上查了半天资料发现torch和torchvision安装有问题,我想很多人也可能会碰到这种问题,因此,写下这篇内容。原因:可能是需要安装cpu版本的包解决办法:第一步:中国大陆的朋友之下下面代码会加快安装速度。conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud原创 2022-05-09 16:26:23 · 727 阅读 · 0 评论 -
多个字典合并从一个json文件
废话不多说上代码:def Json(time,inde): dict_list = [] #设置一个储存列表 for i in range(len(inde)): #为一次性写入的多个字典设置循环 dictObj={ 'ID':str(i), 'A':str(start[i]), 'B':str(peak[i]), } dict_list.append(dictObj) filename = 'list.json' with open('list.json原创 2022-04-20 21:57:57 · 948 阅读 · 0 评论