本篇目标 抓取淘宝MM的姓名,头像,年龄 抓取每一个MM的资料简介以及写真图片 把每一个MM的写真图片按照文件夹保存到本地 熟悉文件保存的过程 PS:如有需要Python学习资料的小伙伴可以加下方的群去找免费管理员领取 1.URL的格式 在这里我们用到的URL是 http://mm.taobao.c ...
分类:
编程语言 时间:
2020-07-28 17:14:57
阅读次数:
88
这个是因为没有将requires_grad设为True,l=LOSS(out,label)中的l默认是requires_grad为false,这个l其实也是一个张量Tensor类型,将其的requires_grad改为True后,使用backward函数就可以得到requires_grad为True ...
分类:
其他好文 时间:
2020-07-26 22:55:24
阅读次数:
279
一般写JDBC代码的时候都会有这么一句代码: 1 Class.forName("com.mysql.jdbc.Driver"); 这是加载数据库的注册驱动。但是从JDBC4.0后,就不用显式加载了,也就是人家DriverManager类自动帮你加载了,这句代码你不用写了,直接获取数据库连接就行。 可 ...
分类:
数据库 时间:
2020-07-26 15:41:48
阅读次数:
74
[编程题] JZ65 矩阵中的路径 题目描述 输入输出案例 参考 参考 思路 使用回溯、递归、枚举的思想 代码 class Solution { public boolean exist(char[][] board, String word) { //用于标记是否已经被访问的二维数组 boolea ...
分类:
其他好文 时间:
2020-07-26 01:43:42
阅读次数:
65
##题面 he length of the longest common prefix of two strings s=s1s2…sn and t=t1t2…tm is defined as the maximum integer k (0≤k≤min(n,m)) such that s1s2…s ...
分类:
其他好文 时间:
2020-07-26 00:15:56
阅读次数:
106
@echo off setlocal enabledelayedexpansion for /r . %%a in (ipch) do ( if exist %%a ( echo "delete" %%a rd /s /q "%%a" ) ) for /r . %%a in (*.sdf) do ( ...
分类:
其他好文 时间:
2020-07-26 00:14:13
阅读次数:
71
where is C used ? C 语言的应用场景 C is widely used C语言被广泛应用于: For creating desktop applications 用于创建桌面应用程序 For developing games 游戏开发 For designing Operating ...
分类:
编程语言 时间:
2020-07-23 09:12:31
阅读次数:
75
(拓扑排序;AOE图) ##题目大意 给出一个工程各个活动的优先关系和所需时间,求完成这个工程所有活动的最短时间。如果无法完成,则输出Impossible。 题目链接 ##思路 拓扑排序。start为源点,ending为汇点。用一个变量num记录进入队列中的元素个数,如果不等于结点n,则表示不能完成 ...
分类:
其他好文 时间:
2020-07-22 13:52:22
阅读次数:
75
字典树 字典树比较普通字符串比较而言,字符的可操作性更强 const int maxn=5e5+5; //maxn为总结点个数,不是总深度 struct trie{ int nex[maxn][26],cnt=0; bool exist[maxn]; void insert(string s){ i ...
分类:
其他好文 时间:
2020-07-21 14:19:54
阅读次数:
64
When “ERROR CAN NOT MAP ERROR CODE : 21” is displayed [1] Phenomenon ? “ERROR CAN NOT MAP ERROR CODE : 21” is displayed and the equipment does not ope ...
分类:
其他好文 时间:
2020-07-21 13:47:51
阅读次数:
74