Python学习
记录自己学习python
在希望中挣扎
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python 函数特性、递归、切片
函数特性、递归、切片 # pass by list def calc(nums) : ans = 0 for num in nums : ans += num print(ans) # Change Parameter, it can pass zero or many parameters # and Parameter are treated as tuple def per(name, *oth) : print(name, 'and', oth)原创 2022-04-19 19:38:28 · 787 阅读 · 0 评论 -
入门学习python
入门学习python第一天 主要看了一下list、tuple、if、for、dict、set的用法 def string() : num = 10 # print('Hello World') print('你今年{0}岁'.format(num)) print('这是%d%%' % (num)) def listLearn() : classmates = ['Michael', 'Bob', 'Tracy'] print(len(classmates))原创 2022-04-18 22:02:53 · 556 阅读 · 0 评论
分享