Skip to content

Commit 6411875

Browse files
committed
更正了部分文档和代码
1 parent 28067bf commit 6411875

File tree

128 files changed

+1484
-1709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1484
-1709
lines changed

Day01-15/Day01/code/hello.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
第一个Python程序 - hello, world!
43
向伟大的Dennis M. Ritchie先生致敬
54
@@ -9,7 +8,6 @@
98
109
请将该文件命名为hello.py并在终端中通过下面的命令运行它
1110
python hello.py
12-
1311
"""
1412

1513
print('hello, world!')

Day01-15/Day02/code/centigrade.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
"""
2-
32
将华氏温度转换为摄氏温度
43
F = 1.8C + 32
54
65
Version: 0.1
76
Author: 骆昊
87
Date: 2018-02-27
9-
108
"""
119

1210
f = float(input('请输入华氏温度: '))

Day01-15/Day02/code/circle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
输入半径计算圆的周长和面积
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
import math

Day01-15/Day02/code/leap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
输入年份 如果是闰年输出True 否则输出False
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
year = int(input('请输入年份: '))

Day01-15/Day02/code/operator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
运算符的使用
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
a = 5

Day01-15/Day02/code/string.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
字符串常用操作
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
str1 = 'hello, world!'

Day01-15/Day02/code/variable1.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
使用变量保存数据并进行操作
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
a = 321

Day01-15/Day02/code/variable2.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
将input函数输入的数据保存在变量中并进行操作
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
a = int(input('a = '))

Day01-15/Day02/code/variable3.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
格式化输出
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
a = int(input('a = '))

Day01-15/Day02/code/variable4.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""
2-
32
检查变量的类型
43
54
Version: 0.1
65
Author: 骆昊
76
Date: 2018-02-27
8-
97
"""
108

119
a = 100

0 commit comments

Comments
 (0)