摘要: 方法: 1、uname -a 2、uname -m 3、file /sbin/init 4、arch 5、Settings -> Details 说明: 1. i386 适用于intel和AMD所有32位的cpu.以及via采用X86架构的32的cpu.intel平台包括8086,80286,803 阅读全文
posted @ 2017-12-29 11:47 魂~ 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 问题: sudo apt-get install vim E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administratio 阅读全文
posted @ 2017-12-29 11:10 魂~ 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 一、模块 1、import导入模块 2、from...import...导入模块 导入指定内容 导入所有内容 这种导入方法会有重名风险,使用时应注意。 3、模块中的__all__变量 用来限制当用from xxx import *时导入时,导入的内容。不再__all__这个列表中的内容不会被导入。 阅读全文
posted @ 2017-12-29 11:04 魂~ 阅读(1192) 评论(2) 推荐(1) 编辑
摘要: 1.直接写类名调用: parent_class.parent_attribute(self) 扩展:实例对象和类对象调用实例函数。 2.用 super(type, obj).method(arg)方法调用:super(child_class, child_object).parent_attribu 阅读全文
posted @ 2017-12-29 10:44 魂~ 阅读(1292) 评论(0) 推荐(0) 编辑