上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
摘要: 这道题答案是B。可以推出来公式: 对于第n次折叠,段数为:2^n + 1 剪绳子 DP: class Solution { public: int cutRope(int number) { if(number<2) return 0; else if(number==2) return 1; el 阅读全文
posted @ 2019-11-07 23:10 爱学英语的程序媛 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/questionTerminal/c61c6999eecb4b8f88a98f66b273a3cc来源:牛客网请设计一个函数,用来判断在一个矩阵中是否存在一条包含某字符串所有字符的路径。路径可以从矩阵中的任意一个格子开始,每一步可以在矩阵中向左 阅读全文
posted @ 2019-11-07 20:05 爱学英语的程序媛 阅读(262) 评论(0) 推荐(0) 编辑
摘要: torch.utils.data Pytorch提供的对数据集进行操作的函数详见:https://pytorch.org/docs/master/data.html#torch.utils.data.SubsetRandomSampler torch的这个文件包含了一些关于数据集处理的类: clas 阅读全文
posted @ 2019-11-04 11:30 爱学英语的程序媛 阅读(16797) 评论(0) 推荐(0) 编辑
摘要: 报错:invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number 解决方法: That's because in PyTorch>=0.5, the index of 阅读全文
posted @ 2019-11-04 11:26 爱学英语的程序媛 阅读(3881) 评论(0) 推荐(0) 编辑
摘要: We evaluate the trade-offs between accuracy, and number of operations measured by multiply-adds (MAdd), as well as actual latency, and the number of p 阅读全文
posted @ 2019-11-03 21:30 爱学英语的程序媛 阅读(1463) 评论(0) 推荐(0) 编辑
摘要: 先是费劲吧唧的安装了Ctex。。。巨坑的打不开一个.tex模板,然后我就卸载了。 Windows 用户推荐使用: Tex live + 【Tex studio(不推荐) 】/ VS code(推荐) Tex live是Tex的一个发行版,给Tex的使用提供了工作环境,但是Tex studio比Tex 阅读全文
posted @ 2019-11-01 16:31 爱学英语的程序媛 阅读(884) 评论(0) 推荐(0) 编辑
摘要: http://www.planetb.ca/syntax-highlight-word 这个网站可以将代码转成好看的格式,然后copy到word中。 阅读全文
posted @ 2019-10-26 17:25 爱学英语的程序媛 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 输入:matlab -nodisplay 进入之后: run xxx.m 阅读全文
posted @ 2019-10-12 17:37 爱学英语的程序媛 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: 参考连接: https://docs.python.org/zh-cn/3/howto/logging.html 阅读全文
posted @ 2019-10-12 17:36 爱学英语的程序媛 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1. Find in Path功能提供了全局查找功能,快捷键为Ctrl + Shift + F 或从菜单Edit-》Find-》Find in Path进入全局查找界面 2. 在当前文件查找,快捷键为Ctrl + F 3. pycharm使多行代码同时缩进:鼠标选中多行代码后,按下Tab键,一次缩进 阅读全文
posted @ 2019-10-12 17:33 爱学英语的程序媛 阅读(211) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页