Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_1
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
dda3d8e1
authored
Nov 13, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
32cce697
Pipeline
#3487
failed in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
18 deletions
2.py
3.py
diy1.py
2.py
deleted
100644 → 0
View file @
32cce697
import
random
kc
=
input
(
"今天星期几呀"
)
if
kc
==
"星期一"
:
print
(
"学习钢琴~"
)
elif
kc
==
"星期三"
:
print
(
"学习编程~"
)
elif
kc
==
"星期六"
:
print
(
"学习英语"
)
else
:
print
(
"学习国语~"
)
\ No newline at end of file
3.py
deleted
100644 → 0
View file @
32cce697
import
random
name
=
input
(
"创造师你叫啥名?"
)
jp
=
[
"小卓一个"
,
"小卓的一个吻"
,
"小卓的一个拥抱"
,
"ipad"
,
"苹果13"
]
pj
=
random
.
choice
(
jp
)
print
(
"恭喜你,幸运的召唤师——"
+
name
+
"获得了"
+
pj
)
\ No newline at end of file
diy1.py
View file @
dda3d8e1
...
...
@@ -4,7 +4,7 @@ students = ["悟空", "小贝", "八戒", "波奇"]
students
.
pop
(
"八戒"
)
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面
append
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
...
...
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