猫史档案馆


【Python作品分享】最大收益制作程序【作品秀】

用户:普朗克(丁毅文)普朗克(丁毅文)查看:0 回复:0 评论:0 创建时间:2022-10-04T13:14:17


【作品展示】

center_image

 

【作品介绍】

只要输入每一天商品的价格,便可以计算最大收益。可以应对思维100考试中一道常见的题目。准确度高达100%,还不赶快去使用这个方便的应用!!!

 

【作品源代码】

frist = int(input('1:'))
second = int(input('2:'))
third = int(input('3:'))
one = frist
if (one < second):
    two = second
if (one > second):
    one = second
    two = one
if (third > second):
    three = third
if (third < second):
    two = third
    three = second
answer = (three - one)
print(answer)

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页