摘要: 1. 形参角度: 万能参数。 的魔性用法。 万能参数。 def eat(a,b,c,d): print('我请你吃:%s,%s,%s,%s' %(a,b,c,d)) eat('蒸羊羔', '蒸熊掌', '蒸鹿邑','烧花鸭') def eat(a,b,c,d,e,f): print('我请你吃:%s 阅读全文
posted @ 2019-08-04 10:51 病毒正在入侵...中 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 1. 函数的初识 写一个获取字符串总个数的代码,不能用len: s1 = 'fjkdsfjdssudafurpojurojregreuptotuproq[t' python没有len count = 0 for i in s1: count += 1 print(count) 写一个获取列表总个数的 阅读全文
posted @ 2019-08-04 10:47 病毒正在入侵...中 阅读(108) 评论(0) 推荐(0) 编辑