Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python代码输出为';不能正确显示_Python_Output_Modular - Fatal编程技术网

Python代码输出为';不能正确显示

Python代码输出为';不能正确显示,python,output,modular,Python,Output,Modular,我的代码看起来不错,但当我运行它并输入销售数据时,它不会显示佣金 这里是python顺便说一句 继续前进=“y” 当继续时==“y”: 销售=浮动(输入(“输入销售金额:”) 通信速率=10 佣金=销售额*佣金率 打印(“佣金是:”),佣金 keep_going=输入(“您想计算另一笔佣金吗?(输入y表示是):”) main()更改: print ("The commission is: "),commission 致: @polskiebmw:在这个网站上,通过投票选出所有有用的答案来表

我的代码看起来不错,但当我运行它并输入销售数据时,它不会显示佣金

这里是python顺便说一句

继续前进=“y”
当继续时==“y”:
销售=浮动(输入(“输入销售金额:”)
通信速率=10
佣金=销售额*佣金率
打印(“佣金是:”),佣金
keep_going=输入(“您想计算另一笔佣金吗?(输入y表示是):”)
main()
更改:

print ("The commission is: "),commission
致:


@polskiebmw:在这个网站上,通过投票选出所有有用的答案来表达你的感激之情。您可以通过单击答案左上角的向上箭头来完成此操作。此外,单击答案左上角附近的复选标记接受最佳答案。这比在评论中说谢谢要好。这也有助于其他人看到你的问题得到了回答。
print ("The commission is: ", commission)