Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_DIY1
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
d77f1af7
authored
Jul 09, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
add28e56
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
jk.py
jk.py
View file @
d77f1af7
player
=
input
(
"请出拳(石头/剪刀/布)"
)
'''
player = input("请出拳(石头/剪刀/布)")
print("玩家出拳:"+player)
computer = input("请出拳(石头/剪刀/布)")
print("机器人出拳"+computer)
...
...
@@ -16,5 +16,32 @@ if player in list:
else:
print("很遗憾,你输了")
else:
print
(
"输入错误"
)
print("输入错误")'''
a1
=
input
(
"指挥你认罪吗?请回答认罪或不认"
)
a2
=
input
(
"柴可夫斯基你认罪吗?请回答认罪或不认"
)
if
a1
==
"认罪"
and
a2
==
"认罪"
:
print
(
"各判十年"
)
if
a1
==
"不认"
and
a2
==
"不认"
:
print
(
"各判三年"
)
if
a1
==
"认罪"
and
a2
==
"不认"
:
print
(
"a1判二十年,a2判一年"
)
if
a1
==
"不认"
and
a2
==
"认罪"
:
print
(
"a1判一年,a2判二十年"
)
'''a=input("请输入一个名字")
b=input("请输入一个整数")
print(a+"的英语成绩是"+b)'''
'''a=input("今天是星期几?")
if a=="星期一":
print("学钢琴")
elif a=="星期三":
print("学编程")
elif a=="星期六":
print("学英语")
else:
print("学国学")'''
'''import random
list=["玩偶","洋娃娃","奥特曼","汽车"]
a=random.choice(list)
b=input("请输入一个名字")
print(a+"恭喜获得"+b)'''
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