好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

总结python学习过程中if的几种写法

这篇文章总结python学习过程中if的几种写法

for idx in range(0,6):

if i>arr[idx]:

r+=(i-arr[idx])*rat[idx]

print (i-arr[idx])*rat[idx]

i=arr[idx]print r

以上实例 输出 结果为:

净利润:120000
1500.0
10000.0
11500.0

以上就是总结python学习过程中if的几种写法的详细内容,更多请关注Gxl网其它相关文章!

查看更多关于总结python学习过程中if的几种写法的详细内容...

  阅读:31次