所有的程序员都是编剧,所有的计算机都是烂演员。   
返回顶部
摘要: # def func(): # a=111 # b=[1,2,3] # return b # ret=func() # print(ret) # def func1(): # a=999 # b=[5,6,7] # return b # ret=func1() # print(ret) # def 阅读全文
posted @ 2018-04-17 19:28 steven丶syw 阅读(291) 评论(0) 推荐(0) 编辑
摘要: # def mylen(): # ''' # 计算字符串长度 #函数这里要加三引号注释,表明名这个函数的作用# # ''' # s='hello world' # length=0 # for i in s: # length+=1 # print(length) ###写完函数体 尽量不要改pri 阅读全文
posted @ 2018-04-17 18:36 steven丶syw 阅读(150) 评论(0) 推荐(0) 编辑