This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/05-Other/variable/my2.py
2020-12-15 19:58:08 +08:00

12 lines
181 B
Python

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)