Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-4
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
49fe2f61
authored
Jul 17, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
9bf45e80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
8 deletions
diy.py
quiz1.py/1.py
quiz1.py/kekkdkdkk.py
diy.py
View file @
49fe2f61
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
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
()
quiz1.py/1.py
0 → 100644
View file @
49fe2f61
import
turtle
screen
=
turtle
.
Screen
()
screen
.
textinput
(
"姓名框"
,
"你的名字是:"
)
turtle
.
done
()
quiz1.py/kekkdkdkk.py
0 → 100644
View file @
49fe2f61
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment