Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson1_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
9c249785
authored
Apr 16, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5ba54bed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
14 deletions
diy1.py
star.py
diy1.py
View file @
9c249785
player
=
input
(
"请出拳(石头/剪刀/布)"
)
print
(
"玩家出拳:+piayer"
)
\ No newline at end of file
# a=int(input("输入木板数量:"))
# b=int(input("输入给的钱数:"))
# q=20*a
# s=b-q
# print("一共"+q+"元,"+"找零"+s+"元")
# a=int(input(""))
# b=int(input(""))
# print(a,"+",b,"=",a+b,sep="")
# print(a,"+",b,"=",a+b,sep="")
# print(a,"+",b,"=",a+b,sep="")
# print(a,"+",b,"=",a+b,sep="")
# print(a,"+",b,"=",a+b,sep="")
# a=int(input("语文成绩"))
# b=int(input("数学成绩"))
# c=int(input("英语成绩"))
# if a+b+c>285:
# print("去游乐园")
# elif 241<=a+b+c<285:
# print("做一天作业")
# else:
# print("做两天作业")
# a=int(input())
# b=int(input())
# if a%b==1:
# print("sdcfsd")
a
=
input
(
"请输入计算符号:"
)
b
=
int
(
input
(
"请输入第一个数字:"
))
c
=
int
(
input
(
"请输入第二个数字:"
))
if
a
==
"+"
:
print
(
b
+
c
)
elif
a
==
"-"
:
print
(
b
-
c
)
elif
a
==
"*"
:
print
(
b
*
c
)
elif
a
==
"/"
:
print
(
b
/
c
)
if
c
==
0
:
print
(
"vdsf"
)
\ No newline at end of file
star.py
View file @
9c249785
import
turtle
pen
=
turtle
.
Pen
pen
.
fillcolor
(
"green"
)
pen
.
begin_fill
()
for
i
in
range
(
30
):
frowd
(
200
)
right
(
170
)
pen
.
end_fill
()
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
a
=
int
(
input
(
“请出拳
)
石头
/
剪刀
/
)
b
=
int
(
input
())
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