Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_2
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
b4ec3520
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d940ce01
c128232l930p219a9934/wx886570
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
侵权.py
侵权.py
0 → 100644
View file @
b4ec3520
input
random
input
random
XianyYouDianShu
=
my_variable
=
0
ShiFu
=
(
str
(
"1"
))
zhuangjiaDianShu
==
(
random
.
randint
(
15
,
21
))
while
not
((
ShiFu
==
(
str
(
"0"
)))):
print
(
"欢迎来到21点"
)
my_variable
=
(
random
.
randint
(
1
,
21
))
print
((
str
(
"获取点数"
)
+
str
(
my_variable
)))
XianyYouDianShu
=
(
XianyYouDianShu
+
my_variable
)
print
((
str
(
"现有点数"
)
+
str
(
my_variable
)))
print
((
str
(
"庄家点数"
)
+
str
(
ZhuangJiaDianShu
)))
ShiFu
=
input
(
"
\"
0”提交)
if (XianyYouDianShu>21):
print("
败
")
else:
if(XianyYouDianShu>ZhuangJiaDianShu):
print("
赢
")
else:
if (ZhuangJiaDianShu=XianyYouDianShu)
print("
平
")
else:
print("
败
")
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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