更正了文档中的部分bug
parent
1cdc87b397
commit
9203ffe3db
|
@ -104,8 +104,8 @@ if __name__ == '__main__':
|
|||
```Python
|
||||
def main():
|
||||
fruits = ['grape', 'apple', 'strawberry', 'waxberry']
|
||||
fruits += ['pitaya', 'pear', 'mango']
|
||||
# 循环遍历列表元素
|
||||
fruits += ['pitaya', 'pear', 'mango']
|
||||
# 循环遍历列表元素
|
||||
for fruit in fruits:
|
||||
print(fruit.title(), end=' ')
|
||||
print()
|
||||
|
|
|
@ -131,6 +131,9 @@ if __name__ == "__main__":
|
|||
#### 练习1:定义一个类描述数字时钟
|
||||
|
||||
```Python
|
||||
from time import sleep
|
||||
|
||||
|
||||
class Clock(object):
|
||||
"""数字时钟"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue