每日总结2023/3.28(pycharm创建pp工程)

 

 

 

 

 

 

 

 

def calculate_fee(distance_travelled):
     return 10+2 *distance_travelled

for x in [1.0,3.0,5.0,9.0,10.0,20.0]:
    print(calculate_fee(x))

 

 

 

posted @ 2023-04-04 22:44  橘子味芬达水  阅读(15)  评论(0编辑  收藏  举报