数据驱动方式尝试

This commit is contained in:
dongxiaoyan
2020-12-15 19:58:08 +08:00
parent da2e33850b
commit fe1127b3a3
16 changed files with 711 additions and 0 deletions

11
05-Other/variable/my2.py Normal file
View File

@@ -0,0 +1,11 @@
import math
_all_ = ['AREA1','AREA2']
def get_area(diameter):
radius = diameter/2
area = math.pi*radius*radius
return area
AREA1 = get_area(1)
AREA2 = get_area(2)