摘要: 函数定义与调用 #函数定义 def mylen(): """计算s1的长度""" s1 = "hello world" length = 0 for i in s1: length = length+1 print(length) #函数调用 mylen() #函数的定义和调用 总结一: 定义:de 阅读全文
posted @ 2018-11-29 09:22 cheng_z 阅读(224) 评论(0) 推荐(0) 编辑