求大佬把这段C语言转换成Python,谢谢

2021-01-25 12:12:21 字数 1068 阅读 1093

1楼:匿名用户

基本上一句一句转就行了

如果需要可以找我帮你转

有问题继续问我

求各位大神把下面的c语言程序编码翻译成python语言,谢谢的!!急呀!!

2楼:天刚没亮

price1 = 4.5

price2 = 5.5

price3 = 5.5

thing1 = raw_input('please input the first thing you wang to bug\n')

print thing1

num1 = int(raw_input('please input the number you need\n'))

print num1

print 'the price is %f' % float(num1*price1)

thing2 = raw_input('please input the first thing you wang to bug\n')

print thing2

num2 = int(raw_input('please input the number you need\n'))

print num2

print 'the price is %f' % float(num2*price2)

thing3 = raw_input('please input the first thing you wang to bug\n')

print thing3

num3 = int(raw_input('please input the number you need\n'))

print num3

print 'the price is %f' % float(num3*price3)

print 'the final price is %f' % float(num1*price1+num2*price2+num3*price3)

3楼:匿名用户

很愿意帮助你完成方面其他方式交流吗

C语言字符大小写怎么转换,c语言编程:将小写字母转换为大写字母并输出。急求谢了。

1楼 匿名用户 include stdio h include string h void inv char s void main 2楼 匿名用户 include include char a char b 10 main 习惯不好,最好用int main void 原因以后学到再说 修改版 in...

急求日语大佬翻译这段日语,谢谢,求日语大佬翻译一下。不要机器翻译谢谢!!!!!!求教。。这段话比较难。。补充里面。 100

1楼 写的很乱,好多单词也写错了。把能看清楚的翻译一下 想 込 描 。 把想法刻在心里描了下来。。 寒 気持 伝 嬉 。 即使很冷只要把温馨的这份心情传达过来也是一件让人高兴的事。 男 人 好 这么说男人对巧克力来说,奶油和牛奶喜欢那一种? 求日语大佬翻译一下。不要机器翻译谢谢!!!!!!求教。。这...

C语言下面程序段的运行结果是求详解,谢谢

1楼 读书人 k 0,m 5 因为经过k 这一语句之后j已经从0变为1了 2楼 叔伯老表 打印输出的是 k 2,n 5 c语言 下面程序段的运行结果是 个人算是7,答案是4,求解答 谢谢! 3楼 匿名用户 答案是4 实际上是求出6 10的所有合数数量。 一旦能够整除,就跳出当层j的循环,进入i的下一...