python学习之platform模块

该模块用来访问平台相关属性。 常见属性和方法   平台架构 platform.machine() 返回平台架构。若无法确定,则返回空字符串。 1 2 3 4 5 >>> platform.machine() 'AMD64' >>> platfor…

Python isinstance() 函数

描述 isinstance() 函数来判断一个对象是否是一个已知的类型,类似 type()。 isinstance() 与 type() 区别: type() 不会认为子类是一种父类类型,不考虑继承关系。 isinstance() 会认为子类是一种父类类型…