- 博客(7)
- 收藏
- 关注
原创 TypeError: argument of type ‘WindowsPath‘ is not iterable,TypeError: ‘NoneType‘ object is not subs‘
TypeError: argument of type 'WindowsPath' is not iterable,TypeError: 'NoneType' object is not subs'
2022-12-27 07:57:30
1299
原创 建一个test_1_10.py,run时变为run py.test_1_10.py,解决办法:改为1_10.py
建一个test_1_10.py,run时变为run py.test_1_10.py,解决办法:改为1_10.py
2022-12-10 08:01:36
131
原创 DevToolsActivePort file doesn‘t exist 谷歌浏览器无法正常更新怎么办 无法启动更新检查(错误代码为 3: 0x80040154)谷歌浏览器无法正常更新怎么办 无法
问题描述:用selenium研究自动化,有下载Chrome驱动器,但运行时报上面的错误,浏览器也有错误解决方法是卸载掉我从软件管家下载的chrome浏览器,从Chrome官网下载了一个
2022-05-24 11:19:48
1113
原创 leetcode27. 移除元素
class Solution: def removeElement(self, nums: List[int], val: int) -> int: count = 0 cur = nums[0] for i in range(1,len(nums) - 1): if val != nums[i]: count += 1 cur = nums[i] .
2022-03-28 23:11:51
288
原创 链表python
class Node(object): """节点""" def __init__(self,elem): self.elem = elem self.next = Noneclass SingeLinkList(object): """单链表以下对象方法""" def __init__(self,node = None): self._head = node def is_empty(self): .
2022-03-22 22:46:07
1662
原创 类,实例,方法
类:模板实例:实例类,在Python类中规定,函数的第一个参数是实例对象本身,并且约定俗成,把其名字写为self对象:class Student(object): # self就是一个对象,对象里面有两个参数self.name,self.male def __init__(self,name,male): self.name = name self.male = male def intr(self): sen = "i a
2022-03-21 21:58:56
533
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人