python_basics
8
函数
任意数量的实参
def fun(size,*top):
print(size)
print(top)
#
fun(2,'jack','tom')接受任意数量的关键字实参
def fun(size,**top)
pass
fun(3,location='ch',field='hebei')模块
导入模块
import module
module.some按需导入
9 类
继承
重写父类的方法
Last updated