摘要:
Exercise: Solution: 1. def remove_char(s): s1 = list(s)#把字符串 拆分成列表 s1.remove(s1[0])#删除列表第一个元素 s1.pop()#删除列表最后一个元素 #把新生成的列表 s1 生成字符串 s2 = '' for i in s 阅读全文
posted @ 2022-06-29 20:57
大序列
阅读(31)
评论(0)
推荐(0)
摘要:
Exercise: Solution: 1. def rental_car_cost(d): pd = 40 * d if d < 3: return pd elif d < 7: return pd - 20 else: return pd - 50 2. def rental_car_cost( 阅读全文
posted @ 2022-06-29 17:37
大序列
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号