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
2dddb23c
authored
Aug 07, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
30cbc75f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
11 deletions
star.py
star.py
View file @
2dddb23c
"""
请使用turtle模块画出五角星
"""
import
turtle
pen
=
turtle
.
Pen
()
for
i
in
range
(
5
):
pen
.
forward
(
200
)
pen
.
right
(
144
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
# print("悟空")
# print("小贝")
# for i in range(10):
# print("悟空")
# print("齐天大圣"+"vs"+"六耳猕猴")
# print("姓名"+"潘建宇")
# print("爱好"+"吃")
# print("性别"+"男")
# print("年纪"+"12")
# import turtle
# pen=turtle.Pen()
# for i in range(6):
# pen.forward(100)
# pen.right(60)
# pen.hideturtle()
# turtle.done()
# name=input("请输入姓名:潘建宇")
# score=input("请输入成绩:90+")
# print(name+"的成绩是:90+"score)
# week=input("今天是星期几:星期五")
# if week=="星期一"
# print("今天学钢琴")
# elif week=="星期三"
# rint("今天学编程")
# elif week=="星期六"
# print("今天学英语")
# else:
# print("今天学国学")
# import random
# list=["雨蛙","长颈鹿","蜥蜴","海豚"]
# animal=rendom.choice(list)
# print(animal)
# if animal=="雨蛙":
# print("它是两栖动物")
# elif animal=="蜥蜴"
# print("它是爬行动物")
# else:
# print("它是哺乳动物")
name
=
input
(
"创造师你叫什么名字:潘建宇"
)
import
random
list
=
[
"手机"
,
"电脑"
,
"游戏机"
]
goal
=
random
.
choice
(
list
)
print
(
name
+
"你的奖品是:"
+
goal
)
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