Commit 60208423 by BellCodeEditor

save project

parent 30fe58b3
Showing with 73 additions and 0 deletions
i=2
sum=0
a=2
while i<=100:
if i%2==a%2:
sum-=i
else:
sum+=1
i+=1
print('sum:',sum)
\ No newline at end of file
import turtle
textinput=0
pen=turtle.Pen()
size=textinput('提示','你想要多大的魔法阵呀?')
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
turtle.done()
\ No newline at end of file
help=input('您好,欢迎光临古灵阁,请问需要帮助吗?需要or不需要')
if help=="需要":
choice=input('请问您需要什么帮助呢?1 存款;2 货币兑换;3 咨询')
if choice=='1':
print('请去存取款窗口')
elif choice=='2':
print('金加隆和人民币的兑换率为1∶51.3,既1加隆金=51.3人民币')
money=input('请问您需要兑换多少加隆金呢?')
print('好的,我知道了,您需要兑换'+money+'加隆金')
prinit('那么,您需要付钱给我'+int(money)*51.3+'人民币。')
else:
print('请去存取款窗口')
else:
print('好的,再见')
\ No newline at end of file
choice=input('您好,欢迎光临伽利略游乐园,请问您需要帮助吗?需要or不需要?')
if choice=='需要':
number=input('请问您需要什么帮助呢?1 存取款;2 货币兑换;3 咨询')
if number=='2':
print('伽币和人民币的兑换率为1:4.78,即一伽币=4.78人民币')
money=input('请问您需要兑换多少伽币呢?')
print('好的,我知道了,您需要兑换'+money+'伽币')
print('那么,您需要付给我'+str(int(float(money)*4.78))+'人民币')
elif number=='1':
print('请您去存取款窗口办理')
elif number=='3':
print('咨询窗口在右手边哦')
else:
print('您输入的答案不正确')
elif choice=='不需要':
print('好的,谢谢')
else:
print('您输入的答案不正确')
money=80
if money<=500:
print('欢迎进入史塔克穷人榜前三名!')
if money<=100:
print("恭喜你荣获'美国队长'称号")
else:
print('请你找他加薪')
if 500<money<1000:
print('国不放心')
else:
print('富有了你')
\ No newline at end of file
count=0
while count<10:
count+=1
print(count)
\ No newline at end of file
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