摘要: # 模块,导包,引用# importprint("import ...-----------")import time#print(help(time))print(time.ctime())# from ... import ...print("from ... import ...-----------")from time import ctime,sleep#print(help(time... 阅读全文
posted @ 2018-07-31 18:10 简单の自我 阅读(147) 评论(0) 推荐(0) 编辑
摘要: # 函数:不创建类的情况下定义一个语句体print("def函数 ")def add(a,b): return a + bc = add("3","5")print(c)def add(a=1,b=1): return a + bc = add()print(c)# 函数,对a传参def add(a 阅读全文
posted @ 2018-07-31 14:34 简单の自我 阅读(169) 评论(0) 推荐(0) 编辑