Commit 92a4134a by BellCodeEditor

auto save

parent fdf9b21d
Showing with 55 additions and 0 deletions
#print("Hello World!")
#输入 要吃的食物
#input_food = input("今晚我要吃:")
#输出 要吃的食物
#print("今晚我要吃-",input_food)
#input_food 下划线命名法
#InputFood 驼峰命名法
"""
#整数类型变量
counter = 100
#浮点类型变量
miles = 100.0
#字符串型变量
name = "bellcode"
#查看变量类型
print(type(counter))
print(type(miles))
print(type(name))
#连续赋值相同的值
a = b = c = 1
print(a)
print(b)
print(c)
#连续赋值不同的值
a,b,c = 1,2,3
print(a)
print(b)
print(c)
x = 21
y = 8
#加运算
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)
#取余运算
print("x%y=",x%y)
#幂次方运算
print("x**y=",x**y)
"""
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