使用python3编写,打印出半径为2的圆的面积,并保留10位小数
import math area = 2 * 2 * math.pi print('{:.10f}'.format(area))
PS:import的用法要注意,载入一个模块,后面跟'点'