分支结构
1.if-else
1 | a = 200 |
2.while
1 | x = 4 |
3.for
1 | for x in "bananas": |
函数
1 | #初始化赋值 |
数组
类 and 对象
1 | class Person: |
继承
1 | #create |
迭代器
1 | #有迭代方法的对象使用了该方法,创建了一个迭代器的对象 |
模块
1 | import func as my_func |
调试
1 | try: |
input输入
format
1 | quantity = 3 |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.