python学习7——函数
摘要:
1、函数。 输出结果: 2、函数和文件。 输出结果: 为了知道+=的作用,我将代码修改为: 输出结果: 可以看到,第二行的内容没有被打印出来。 结论: a+=b 即为 a=a+b 3、return 输出结果: 阅读全文
posted @ 2018-08-24 17:56 shannon_V 阅读(278) 评论(0) 推荐(0)
posted @ 2018-08-24 17:56 shannon_V 阅读(278) 评论(0) 推荐(0)
posted @ 2018-08-23 16:53 shannon_V 阅读(843) 评论(0) 推荐(0)
posted @ 2018-08-22 19:01 shannon_V 阅读(315) 评论(0) 推荐(0)
posted @ 2018-08-21 12:40 shannon_V 阅读(377) 评论(0) 推荐(0)
posted @ 2018-08-20 16:47 shannon_V 阅读(186) 评论(0) 推荐(0)
posted @ 2018-08-17 16:11 shannon_V 阅读(171) 评论(0) 推荐(0)
posted @ 2018-08-16 16:34 shannon_V 阅读(175) 评论(1) 推荐(0)