爬虫萌新的踩坑日常
文章平均质量分 68
和煦·刘
初来乍到的爬虫小萌新 喜欢探讨代码问题 虚心求教是我的座右铭
展开
-
我的算法之路
leetcode算法_第一题_两数之和 ‘’’ 前言 a + b = c c - b = a 我没有想到第二个,可见我有多菜 ‘’’ 给定一个数组nums 和一个整数目标值target, 在该数组中找出和为target的两个数,并返回它们的数组下标(Ps:输出他们的index) 菜鸟一式: class Solution(object): def twoSum(self, nums, target): """ type nums : List[int] type target: int rt原创 2021-06-08 16:35:53 · 134 阅读 · 0 评论 -
踩坑日常之python strip() 使用
def strip(self, chars=None): """ For each element in `self`, return a copy with the leading and trailing characters removed. See also -------- char.strip """ return asarray(strip(self, c...原创 2020-08-31 10:53:13 · 1221 阅读 · 1 评论