![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
拦路虎
吴优无恧
这个作者很懒,什么都没留下…
展开
-
力扣上手拦路虎之python字符串
Python字符串|菜鸟教程 使用[:]截取字符串中的一部分原创 2021-11-26 16:22:34 · 527 阅读 · 0 评论 -
力扣上手拦路虎之python链表
Python链表操作(实现) 好像把链表放到Python里面就不知道怎么操作了 其实就是把基础操作封装起来原创 2021-11-26 15:50:29 · 626 阅读 · 0 评论 -
力扣上手拦路虎之python的类
1. 两数之和 class Solution(object): def twoSum(self, nums, target): ''' :type nums: List[int] :type target: int :rtype: List[int] ''' 使用类的时候需要进行初始化,否则会报错: TypeError: twoSum () missing 1 required positional argument: 't原创 2021-11-25 17:47:02 · 211 阅读 · 0 评论 -
力扣上手拦路虎之列表输出
class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ 需要关注输出的数据格式为list 对于def而言,需要有return作为输出,而非print 否则例题输出为null 而想要将列表作为输出,直接return[i,j]即可 ..原创 2021-11-25 19:42:13 · 158 阅读 · 0 评论