摘要:
例1:非菱形继承,经典类与新式类的属性查找顺序都一样# class E:# # def test(self):# # print('from E')# pass## class F:# def test(self):# print('from F')### class B(E):# # def te 阅读全文
posted @ 2020-08-16 10:35
Οo白麒麟оΟ
阅读(122)
评论(0)
推荐(0)
摘要:
八 包介绍 1、什么是包? #官网解释Packages are a way of structuring Python’s module namespace by using “dotted module names”包是一种通过使用‘.模块名’来组织python模块名称空间的方式。#具体的:包就 阅读全文
posted @ 2020-08-16 00:26
Οo白麒麟оΟ
阅读(246)
评论(0)
推荐(0)
摘要:
常用模块学习 时间模块 import time 一:时间有三种格式(*) 1、时间戳:秒数=>用于时间计算 # start=time.time()# print(start,type(start)) 2、格式化的字符串=>用于显示给人看 # res=time.strftime("%Y-%m-%d 阅读全文
posted @ 2020-08-16 00:22
Οo白麒麟оΟ
阅读(111)
评论(0)
推荐(0)