Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson1_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
3e2cc2dc
authored
Dec 18, 2019
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
414789dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
lqy.py
lqy1.py
lqy.py
View file @
3e2cc2dc
#输出 Hello World!
#输出 Hello World!
print
(
"Hello World!"
)
print
(
"Hello World!"
)
"""
#输入 食物名称
#输入 食物名称
input_food = input_food("今晚要吃什么:")
input_food = input_food("今晚要吃什么:")
#输出 要吃的食物
#输出 要吃的食物
print
(
"今晚我要吃-"
,
input_food
)
print("今晚我要吃-",input_food)
\ No newline at end of file
"""
print
(
"black"
)
\ No newline at end of file
lqy1.py
View file @
3e2cc2dc
counter
=
100
counter
=
100
#整数变量
miles
=
100.0
miles
=
100.0
#浮点变量
name
=
"bellcode"
name
=
"bellcode"
#字符变量
print
(
type
(
counter
))
print
(
type
(
counter
))
print
(
type
(
miles
))
print
(
type
(
miles
))
print
(
type
(
name
))
print
(
type
(
name
))
#连续赋值相同的值
a
=
b
=
c
=
1
a
=
b
=
c
=
1
print
(
a
)
print
(
a
)
print
(
b
)
print
(
b
)
print
(
c
)
#连续赋值不同的值
a
,
b
,
c
=
1
,
2
,
3
print
(
a
)
print
(
b
)
print
(
c
)
print
(
c
)
\ No newline at end of file
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