Commit 49fe2f61 by BellCodeEditor

save project

parent 9bf45e80
Showing with 47 additions and 8 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
j=input("你要买什么?")
if j in dict:
prink('巧克力'(dict[j]))
else:
prink(缺货)
j=input("情爱的用户你想买什么")
import turtle
p=turtle.Pen()
screen=turtle.Screen()
p.goto(100,-100)
p.write("你好\n我姓爸",font=("Times",30,"normal"))
p1=turtle.Pen()
a=screen.textinput("提示","你想要多大的爱心呢?")
len=int(a)
p1.left(45)
p1.forward(2*len)
p1.circle(len,180)
p1.right(90)
p1.circle(len,180)
p1.forward(2*len)
turtle.done()
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
turtle.done()
un='wafywy'
up='1029'
while Ture:
n=input("请输入你的用户名:")
p=input("请输入你的密码:")
if un ==n and up == p:
print("登录成功")
break
print("错了,你是不是本人,是的话,再想想,三次之后还打错的话,直接请一百年后再尝试登录,但如果不是,我们将报警(现在正在人脸识别...)")
print("恭喜,登录对了,希望您游玩愉快一一一")
\ 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