会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
Arthur_Walker
To improve is to change,To perfect is to change often.
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2021年9月18日
python读取、写入txt文本
摘要: 1. 读取txt文本 1.1 read() 一次性读全部内容 一次性读取文本中全部的内容,以字符串的形式返回结果 with open("text.txt", "r") as f: # 打开文件 data = f.read() # 读取文件 print(data) 1.2 readline() 读取第
阅读全文
posted @ 2021-09-18 20:03 _yhwu
阅读(1614)
评论(0)
推荐(0)
2021年9月17日
pytorch debug:RuntimeError: reduce failed to synchronize: device-side assert triggered
摘要: 报错 RuntimeError: reduce failed to synchronize: device-side assert triggered 原因:BCELoss 需要最后一层输出层为sigmod,可用 BCEWithLogitsLoss 进行替换,或直接在网络输出层添加sigmod层。
阅读全文
posted @ 2021-09-17 09:30 _yhwu
阅读(363)
评论(0)
推荐(0)
2021年9月14日
linux 解压被分割的压缩包文件(如package.z01、package.z02、package.z03)
摘要: 如被分割的一系列压缩包文件:package.z01、package.z02、package.z03、 package.zip 直接右键解压是不行的。 1. 首先合并文件: cat package.* > package_all.zip 2. 然后解压文件: unzip package_all.zip
阅读全文
posted @ 2021-09-14 16:58 _yhwu
阅读(995)
评论(0)
推荐(0)
2021年9月1日
Google play下载安装APP一直正在等待下载的解决方法
摘要: 问题:Google play下载安装APP一直正在等待下载 1. 打开手机系统设置 2. 应用 3. 找到Google play(不是Google play 服务) 4. 点击进入详情页面 5. 找到>清空全部数据<按钮,并点击(不是清空缓存) 6. 确定 重新打开Google play再次下载 (
阅读全文
posted @ 2021-09-01 21:53 _yhwu
阅读(20040)
评论(0)
推荐(0)
2021年8月27日
github合并分支到master
摘要: # 切换到master分支 git checkout master # 将bencha分支的代合并到master git merge bencha # 查看状态 git status # 推送 git push -u origin master
阅读全文
posted @ 2021-08-27 20:03 _yhwu
阅读(244)
评论(0)
推荐(0)
git指令:warning: LF will be replaced by CRLF in readme.txt.问题
摘要: 错误提示 warning: LF will be replaced by CRLF in readme.txt.The file will have its original line endings in your working directory. 问题原因:此问题是不同操作系统的使用的换行符
阅读全文
posted @ 2021-08-27 20:01 _yhwu
阅读(98)
评论(0)
推荐(0)
2021年8月26日
Python pip镜像安装包 (豆瓣源)
摘要: 一招鲜 pip install package_name -i https://pypi.doubanio.com/simple 注:https,而不是http,被坑了N多回!
阅读全文
posted @ 2021-08-26 21:05 _yhwu
阅读(278)
评论(0)
推荐(0)
2021年8月23日
ubuntu18.04 安装gcc7,g++7
摘要: 下载并安装gcc编译安装包 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-7 sudo apt-get install g++-7 将gcc7,g++7
阅读全文
posted @ 2021-08-23 13:13 _yhwu
阅读(1300)
评论(0)
推荐(0)
2021年8月22日
pytorch 安装报错:No matching distribution found for torch===1.2.0
摘要: 改用如下命令: pip install torch==1.2.0 -f https://download.pytorch.org/whl/torch_stable.html
阅读全文
posted @ 2021-08-22 20:18 _yhwu
阅读(2045)
评论(0)
推荐(0)
2021年8月11日
LaTeX【四】 波浪线~
摘要: 方式一:文字环境下,\textasciitilde 方式二:公式环境下,$ \sim $ 注:推荐使用方式二
阅读全文
posted @ 2021-08-11 20:54 _yhwu
阅读(4363)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告