题解 2835: 计算书费

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

编写题解 2835: 计算书费

解题思路:注意事项:参考代码:price=(28.9,32.7,45.6,78,35,86.2,27.8,43,56,65)quantity=tuple(map(int,input().split()))price_sum=0foriinrange(len(price)):price_sum+=pri

计算书费写法

解题思路:注意事项:参考代码:ls1=list(map(int,input().split()))ls2=[28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]sum=0foriinrange(0,10):sum=sum+int(ls1[i])*float(ls2[i])p

2835: 计算书费

摘要:参考代码:arr = map(int, input().split()) price = [28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65] pr……

python 2835: 计算书费

```pythonprices=[28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]num=list(map(int,input().strip().split()))sums=[]foriinrange(len(num)):sums.append(num[i]*pric

编写题解 2835: 计算书费

摘要:解题思路:注意事项:参考代码:price=[28.9,32.7,45.6,78,35,86.2,27.8,43,56,65] #将价格储存进数组 nums=list(map(int,input().……

简单明了计算书费

摘要:解题思路:看代码铁子注意事项:参考代码:a = [28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]          #每本书的单价b = list(map(int,i……

计算书费元组方法

解题思路:注意事项:参考代码:prices=[28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]counts=list(map(int,input().strip().split()))sum_price=sum(price*countforprice,

优质题解,回归真神的初始途径

摘要:解题思路:利用列表[]的有序性和list函数的有序性,可以一一对应注意事项:参考代码:# 图书价格列表prices = [    28.9,  # 计算概论    32.7,  # 数据结构与算法  ……