题目

完善以下程序代码完成下题。 程序描述:2公里(包括2公里)内,起步价为5元,超过2公里部分(不足整公里的,向上取整),每公里1.6元。 代码如下: Import   ①    #引用math库 s=  ②  (input("请输入你要去目的地距离出发点的公里数:)) If  ③  :  #2公里(包括2公里)内    cost =5 else:   cost = 5+math.ceil(s-2) *1.6 print("你的打的费用是", cost,“元) ①处的语句是,②处的语句是,③处的语句是 ①A.math    B.Numpy    C.time    D.Matplotlib ②A.Float    B.Int    C.str    D.Math ③A.s≤2    B.s<=2    C.s>2    D.s≥2 答案:【1】A【2】A【3】B
信息技术 试题推荐
最近更新