python_for_asl/Exercise/exercise-1.2.py
2025-08-06 02:04:35 +08:00

8 lines
270 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import math
# 请输出以下关于圆的周长和面积的计算保留3位小数
radius = 3
pi = math.pi
# 应当输出 当圆的的半径是3时它的周长是18.850他的面积是28.274
print('当圆的的半径是时,它的周长是,他的面积是')