计算圆的面积:用python如何写个简单程序?
user
import math

def calculate_circle_area(radius):
    return math.pi * radius ** 2

radius = float(input("请输入圆的半径: "))
area = calculate_circle_area(radius)
print(f"圆的面积是: {area}")
assistant