Commit 1796f74d by BellCodeEditor

auto save

parent 30d0a6a4
Showing with 18 additions and 0 deletions
# # 因为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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment