Discuss / Python / Compute_Aera

Compute_Aera

Topic source

-- coding: utf-8 --

from cmath import pi #引用pi

src = [12,13,14] #初始化传入半径

def area_of_circle(i): #定义函数 for j in i: area = jjpi
print(area)

area_of_circle(src)#调用函数

狐的狸

#2 Created at ... [Delete] [Delete and Lock User]

jjpi也是没谁了。这变量定义的。。。


  • 1

Reply