07 2023 档案

摘要:https://www.w3school.com.cn/sql/sql_join_left.asp 阅读全文
posted @ 2023-07-29 16:23 DuJunlong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:[conda看过来](https://juejin.cn/s/conda%20%E5%AE%89%E8%A3%85%E5%8C%85%E7%9A%84%E8%B7%AF%E5%BE%84 "conda") [pip看过来](https://juejin.cn/s/pip%E5%AE%89%E8%A3 阅读全文
posted @ 2023-07-26 11:44 DuJunlong 阅读(121) 评论(0) 推荐(0) 编辑
摘要:#np.random.randint 用法 np.random.randint 是 numpy 库中用于生成随机整数的函数。它的用法如下: numpy.random.randint(low, high=None, size=None, dtype='l') 其中,各个参数的含义如下: low:生成的 阅读全文
posted @ 2023-07-20 22:18 DuJunlong 阅读(549) 评论(0) 推荐(0) 编辑
摘要:#torch.zeros用法 torch.zeros() 是 PyTorch 中用来创建全 0 张量的函数。用法为 torch.zeros(size, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=Fal 阅读全文
posted @ 2023-07-20 22:15 DuJunlong 阅读(1725) 评论(0) 推荐(0) 编辑
摘要:##1.简单的将文件读取到字符串中 ``` f = open("data.txt","r") #设置文件对象 str = f.read() #将txt文件的所有内容读入到字符串str中 f.close() #将文件关闭 ``` ##2.按行读取整个文件 ###第一种方法 ``` f = open(" 阅读全文
posted @ 2023-07-17 09:57 DuJunlong 阅读(2924) 评论(0) 推荐(0) 编辑
摘要:详情看 > https://zhuanlan.zhihu.com/p/350390959 ``` pip install jupyter_contrib_nbextensions -i https://pypi.douban.com/simple pip install jupyter_nbexte 阅读全文
posted @ 2023-07-16 16:23 DuJunlong 阅读(12) 评论(0) 推荐(0) 编辑
摘要:利用PIL将图片转换为黑色与白色反转的图片,例如用MNIST数据集训练的模型要测试的话,测试数据需要黑底白字 阅读全文
posted @ 2023-07-16 11:28 DuJunlong 阅读(259) 评论(0) 推荐(0) 编辑
摘要:怎么读、转换灰度图 阅读全文
posted @ 2023-07-16 11:11 DuJunlong 阅读(239) 评论(0) 推荐(0) 编辑
摘要:如果你在卸载 Node.js 后发现存在残留的文件或目录,可以尝试以下步骤来清理它们: 在命令行中输入 npm root -g,找到全局 Node.js 模块的安装目录。 删除该目录下的所有文件和子目录,确保没有任何残留。 检查是否还存在 Node.js 的环境变量。在 Windows 中,你可以在 阅读全文
posted @ 2023-07-11 17:28 DuJunlong 阅读(1474) 评论(0) 推荐(0) 编辑
摘要:``` git fetch origin git merge origin/master ``` https://juejin.cn/s/git%20%E6%9B%B4%E6%96%B0%E6%9C%AC%E5%9C%B0%E5%88%86%E6%94%AF 阅读全文
posted @ 2023-07-11 17:03 DuJunlong 阅读(28) 评论(0) 推荐(0) 编辑
摘要:https://juejin.cn/post/7094576504243224612 阅读全文
posted @ 2023-07-11 15:52 DuJunlong 阅读(305) 评论(0) 推荐(0) 编辑
摘要:``` import numpy as np import torch import torchvision.transforms from torch.utils.tensorboard import SummaryWriter from torchvision.transforms import 阅读全文
posted @ 2023-07-04 17:29 DuJunlong 阅读(103) 评论(0) 推荐(0) 编辑
摘要:##1.关系 用anaconda创建环境后,在环境里需要安装jupyter notebook,否则使用的就是base里面的jupyter ``` conda create -n new_env activate new_env conda install jupyter notebook ``` # 阅读全文
posted @ 2023-07-04 10:20 DuJunlong 阅读(91) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示