Commit 749b160c by BellCodeEditor

auto save

parent c859280e
Showing with 952 additions and 0 deletions
i = int(input("输入当月利润:"))
arr = [1000000,600000,400000,200000,100000,0]
rat = [0.01,0.015,0.03,0.05,0.075,0.1]
r = 0
for ibx in range(0,6):
if i>arr[ibx]:
r+=(i-arr[ibx])*rat[ibx]
print((i-arr[ibx])*rat[ibx])
i=arr[ibx]
print(r)
\ No newline at end of file
for i in range(1,5):
for u in range(1,5):
for o in range(1,5):
if (i != o) and (i != u) and (u != o):
print(i,u,o)
\ No newline at end of file
def fib(n):
a,b =1,1
for i in range(n-1):
a,b=b,a+b
return a
print(fib(10))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment