background picture of the home page

Hi,Friend

python学习——爬虫

在python的学习中想要使用爬虫,一般分为两部 1.通过网页链接来获取网页内容 2.对获得的内容进行处理 在通过网络链接来获取网页内容时,我们常需要调用数据库 i get()是获取网页最快的方式

thumbnail of the cover of the post

python学习——数组

题目:计算两组数的中位数(由小到大排列) nums1=[1,3] nums2=[2,4] num=[0 for i in range(len(nums1)+len(nums2))] count=0 j=0 i=0 while count<len(nums1)+len(nums2): if n

thumbnail of the cover of the post

python学习——哈希表法

哈希表与数组不同,不再使用索引,而是使用键值对来表示 python中的字典就是哈希表的体现 那么为什么还要学习哈希表法呢? 哈希表可以解决诸多问题。 下面是最简单的一种用法: 题目:两数之和,求出相加符合目标值的数,并返回对应下表 nums=[2,7,11,5] target=9 hashset={

thumbnail of the cover of the post