随笔分类 -  python语言知识

python基础知识+高级编程
Python编程知识
摘要:继承->重写 class A(object): def __init__(self): print("super(B,self).__init__():运行A:init") self.name = "cui" # # 父类的self变量同样存储到self中,在子类中使用self调用没一点问题 def 阅读全文
posted @ 2022-01-06 16:41 低八度 阅读(38) 评论(0) 推荐(0)
python 异常捕捉总结
摘要:Process finished with exit code -1 错误 执行代码 pycharm2020.1中手动中断程序,可是却捕捉不了中断异常,并且输出Process finished with exit code -1 错误,很无语. 最后的解决办法: 将pycharm版本升到2021.2 阅读全文
posted @ 2021-12-13 20:08 低八度 阅读(155) 评论(0) 推荐(0)
python 使用pip安装包的总结
摘要:multiprocessing、logging模块安装 如果使用在cmd中使用 pip install multiprocessing 会报错, 将命令改为 pip3 install multiprocessing就可以了 shutil -->https://blog.csdn.net/why123 阅读全文
posted @ 2021-11-22 18:36 低八度 阅读(617) 评论(0) 推荐(0)