Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_2
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
1796f74d
authored
Sep 21, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
30d0a6a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
615.py
615.py
0 → 100644
View file @
1796f74d
# # 因为input函数可以把输入的内容强制转换为字符串
# # 所以要先把input输入的内容转换为整型,才能进行比较
# n=int(input('请输入感冒指数:'))
# if n>=0 and n<=6:
# print('少发')
# elif n>=7 and n<=19:
# print('较易发')
#print('A'>'a')
# 求和函数:
# sum()可以用来计算一个数字序列的和。
# a=int(float('4.5'))
# print(a)
# pow()用来计算幂运算(乘方)
# 括号里两个参数,第一个参数是底数,第二个参数是指数
print
(
pow
(
5
,
2
))
\ 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