Commit 3e2cc2dc by BellCodeEditor

save project

parent 414789dd
Showing with 14 additions and 4 deletions
#输出 Hello World!
print("Hello World!")
"""
#输入 食物名称
input_food = input_food("今晚要吃什么:")
#输出 要吃的食物
print("今晚我要吃-",input_food)
"""
print("black")
\ No newline at end of file
counter = 100
miles = 100.0
name = "bellcode"
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)
\ 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