a=float(input('销售额:'))b=float(input('销售量:'))c=float(input('均价:'))tpi=a+b0.01c-[683.34-c)/c]b0.003print=('双十一品牌总增价:',tpi)
报错:TypeError: can't multiply sequence by non-int of type 'float'
什么意思?怎么改正?
为什么用中括号?代码认为中括号是列表,所以不能和浮点数相乘