前言:
现在小伙伴们对“基于python的毕业论文课题”大体比较珍视,各位老铁们都需要分析一些“基于python的毕业论文课题”的相关资讯。那么小编在网上汇集了一些关于“基于python的毕业论文课题””的相关文章,希望你们能喜欢,姐妹们快快来了解一下吧!分享兴趣,传播快乐,增长见闻,留下美好!
亲爱的您,这里是LearningYard新学苑。今天小编为你带来
畅享聊:Python的练习题(1)
欢迎您的访问!
Share interests, spread happiness, increase knowledge, and leave beautiful!
Dear you, this is LearningYard Academy.
Today, the editor brings you
Enjoy chatting:Python Exercises (1),
welcome your visit!
今天小编带着大家一起做一做Python的经典练习题。
Today, I will take you to do a classic Python exercise.
题目:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去 掉不满足条件的排列。
Title: There are four numbers: 1, 2, 3 and 4. How many different three digit numbers can be formed without repetition? How many are each?
Program analysis: the numbers that can be filled in hundreds, tens and ones are 1, 2, 3 and 4. After forming all permutations, remove the permutations that do not meet the conditions.
可以用for in range进行遍历循环,程序源代码如下:
You can use for in range to traverse the loop. The program source code is as follows:
输出结果如下:
The output results are as follows:
题目:企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.5%;20万到40万之间时,高于20万元的部分,可提成5%;40万到60万之间时高于40万元的部分,可提成3%;60万到100万之间时,高于60万元的部分,可提成1.5%,高于100万元时,超过100万元的部分按1%提成,从键盘输入当月利润I,求应发放奖金总数?
程序分析:请利用数轴来分界,定位。
Topic: Bonus paid by enterprises is based on profits. When the profit (I) is less than or equal to 100000 yuan, the bonus can be increased by 10%; If the profit is higher than 100000 yuan and lower than 200000 yuan, 10% of the part below 100000 yuan will be entitled to a royalty, and 7.5% of the part above 100000 yuan will be entitled to a royalty; Between 200000 yuan and 400000 yuan, the part higher than 200000 yuan can be deducted by 5%; For the part higher than 400000 yuan between 400000 and 600000 yuan, 3% can be deducted; Between 600000 yuan and 1 million yuan, the part above 600000 yuan will be entitled to 1.5% of the commission, while the part above 1 million yuan will be entitled to 1% of the commission. Enter the profit I of the current month from the keyboard, and ask for the total amount of bonuses to be paid?
Program analysis: Please use the number axis to divide and locate.
代码如下:
The code is as follows:
运行结果如下:
The operation results are as follows:
我们输入几个利润大致验证一下,结果如下:
We input several profits to roughly verify, and the results are as follows:
今天的分享就到这里了。
如果您对今天的文章有独特的想法,
欢迎给我们留言,
让我们相约明天,
祝您今天过得开心快乐!
That's it for today's sharing.
If you have a unique idea about today’s
article,
Welcome to leave us a message,
Let us meet tomorrow,
I wish you a happy day today!
本文由learningyard新学苑原创,如有侵权,请联系我们。
部分文字来源:菜鸟教程
翻译:百度翻译
文字&排版|calm
审核|闫庆红
标签: #基于python的毕业论文课题