python
vany_
这个作者很懒,什么都没留下…
展开
-
pip权限及安装到固定python版本
py -3 -m pip install --user原创 2019-01-07 17:50:51 · 299 阅读 · 0 评论 -
python os
// os.walk()os.getcwd() # 返回当前工作目录os.path.dirname(__file__) # 返回脚本的目录路径os.path.dirname(path) # 返回path的目录路径os.path.dirname(path)# 等同于os.path.split(path)[0]os.path.join() # 连接一个或多个文件路径...原创 2019-03-27 21:48:57 · 92 阅读 · 0 评论 -
Python Poco
异常处理PocoTargetTimeoutfrom poco.exceptions import PocoTargetTimeouttry: ....except PocoTargetTimeout: # bugs here as the panel not shown raisePocoNoSuchNodeExceptionfrom poco.ex...原创 2019-04-17 15:57:21 · 2537 阅读 · 0 评论 -
使用@property
class Person(object): def __init__(self, name, address): self._name = name self._address = address @property def name(self) return self._name @name.setter...原创 2019-04-22 17:18:05 · 253 阅读 · 0 评论 -
python super()函数
super()是用于调用父类的一个方法class B: def __init__(self): ...class A(B): def __init__(self): super(A,self).__init__() ...原创 2019-09-29 10:59:38 · 118 阅读 · 0 评论