Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-2_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
7566f9ab
authored
Apr 11, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7fd67964
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
dy.py
练习/lx.py
练习/练习
dy.py
0 → 100644
View file @
7566f9ab
import
turtle
pen
=
turtle
.
Pen
()
pen
.
write
(
"1*1=2
\n
1*2=2 2*2=4
\n
1*3=3 2*3=6 3*3=9
\n
1*4=4 2*4=8 3*4=12 4*4=16
\n
1*5=5 2*5=10 3*5=15 4*5=20 5*5=25
\n
1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 6*6=36
\n
1*7=7 2*7=14 3*7=21 4*7=28 5*7=35 6*7=42 7*7=49
\n
"
,
font
=
(
"Times"
,
10
,
"normal"
))
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
练习/lx.py
0 → 100644
View file @
7566f9ab
#name = input("请输入姓名:")
#name = input("请输入姓名:")
#achievement = input("请输入成绩:")
#print(name + "的英语成绩是:" + achievement)
#a = input("请输入一个数字")
#d = int(a)
#print(type(a))
#print(type(d))
#a = input("今天星期几?")
#if a == "星期一":
# print("今天学钢琴")
#elif a == "星期三":
# print("今天学编程")
#elif a == "星期六":
# print("今天学英语")
#else a == "星期六":
# print("今天学国学")
import
random
list
=
[
"手机"
,
"电脑"
,
"iPod"
,
"蓝牙耳机"
,
"游戏机"
,
"一百份作业"
]
name
=
input
(
"你叫什么名字"
)
lucky
=
random
.
choice
(
list
)
print
(
"恭喜你,幸运的创造师———"
+
name
+
"获得了"
+
lucky
)
\ No newline at end of file
练习/练习
0 → 100644
View file @
7566f9ab
name = input("请输入姓名:")
name = input("请输入姓名:")
achievement = input("请输入成绩:")
print(name + "的英语成绩是:" + achievement)
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