1, subject ： The bonus paid by the enterprise is based on the profit commission . profit (I) Less than or equal to 10 Ten thousand yuan per hour , Bonus can be withdrawn 10%; High profit
to 10 Ten thousand yuan , lower than 20 Ten thousand yuan per hour , lower than 10 Part of ten thousand yuan 10% Commission , higher than 10 Ten thousand yuan , Keketi
become 7.5%;20 Wan Dao 40 Between ten thousand , higher than 20 Ten thousand yuan , Royalty 5%;40 Wan Dao 60 Higher than 10000
40 Ten thousand yuan , Royalty 3%;60 Wan Dao 100 Between ten thousand , higher than 60 Ten thousand yuan , Royalty 1.5%, higher than
100 Ten thousand yuan per hour , exceed 100 Part of ten thousand yuan 1% Commission , Enter the profit of the current month from the keyboard I, Total bonus paid ?
def bouns(): bouns = 0 profits = [100,60,40,20,10,0] bounsList =
[0.01,0.15,0.03,0.05,0.075,0.1] I = int(input(" Please enter the profit of the current month , The unit is ten thousand yuan ：")) for i in
range(len(profits)): if I > profits[i]: I = I - profits[i] bouns = bouns +
I*bounsList[i] return bouns
2, subject ： An integer , It adds 100 Then there is a complete square , Plus 168 Another perfect square , What's the number, please ?
import math def square(): for x in range(10000): a = int(math.sqrt(x + 100)) b
= int(math.sqrt(x + 268)) if a*a == x+100 and b*b==x + 268: print(' The number is :'+str(x))

Technology