Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a8f28b4

Browse files
docs(day02): 补充练习题注释
1 parent 57fd5fa commit a8f28b4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎day02/code/practice1.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""
22
练习1:华氏温度转摄氏温度
33
公式:F = 1.8C + 32
4+
5+
Version: 1.0
6+
Author: Jalan
47
"""
58

69
f = float(input("请输入华氏温度:"))

‎day02/code/practice2.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
练习2:输入圆的半径计算计算周长和面积
33
周长公式:2*pi*r
44
面积公式:pi*r*r
5+
6+
Version: 1.0.0
7+
Author: Jalan
58
"""
69

710
import math

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /