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
f77ae350
authored
Dec 18, 2019
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7bc59975
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
lqy.py
lqy1.py
lqy2.py
lqy.py
View file @
f77ae350
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
print
(
"Hello World!"
)
print
(
"Hello World!"
)
"""
"""
#输入 食物名称
#输入 食物名称
input_food = input
_food
("今晚要吃什么:")
input_food = input("今晚要吃什么:")
#输出 要吃的食物
#输出 要吃的食物
print("今晚我要吃-",input_food)
print("今晚我要吃-",input_food)
"""
"""
...
@@ -17,4 +17,10 @@ print("x-y=",x-y)
...
@@ -17,4 +17,10 @@ print("x-y=",x-y)
# 乘运算
# 乘运算
print
(
"x*y="
,
x
*
y
)
print
(
"x*y="
,
x
*
y
)
# 除运算
# 除运算
print
(
"x/y="
,
x
/
y
)
print
(
"x/y="
,
x
/
y
)
\ No newline at end of file
# 取整数运算
print
(
"x//y="
,
x
//
y
)
# 取余运算
print
(
"x
%
y="
,
x
%
y
)
# 幂次方运算
print
(
"x**y="
,
x
**
y
)
\ No newline at end of file
lqy1.py
View file @
f77ae350
...
@@ -13,4 +13,15 @@ print(c)
...
@@ -13,4 +13,15 @@ print(c)
a
,
b
,
c
=
1
,
2
,
3
a
,
b
,
c
=
1
,
2
,
3
print
(
a
)
print
(
a
)
print
(
b
)
print
(
b
)
print
(
c
)
print
(
c
)
\ No newline at end of file
x
=
21
print
(
"第一次查看:"
,
type
(
x
))
x
=
float
(
x
)
print
(
"第二次查看:"
,
type
(
x
))
x
=
21
y
=
8
z
=
complex
(
x
,
y
)
print
(
z
)
print
(
type
(
z
))
lqy2.py
View file @
f77ae350
input_d
=
int
(
input
(
"长:"
))
input_h
=
int
(
input
(
"高:"
))
print
(
"mj="
,
input_d
)
\ 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