10 lines
182 B
Python
10 lines
182 B
Python
|
n=int(input("请输入借书天数"))
|
||
|
s=0
|
||
|
if n<1:
|
||
|
print("您输入的借书天数有错")
|
||
|
else:
|
||
|
if n==1:
|
||
|
s=2
|
||
|
else:
|
||
|
s=2+(n-1)*0.8
|
||
|
print(round(s),"元")
|