Commit 3e2cc2dc by BellCodeEditor

save project

parent 414789dd
Showing with 15 additions and 6 deletions
#输出 Hello World! #输出 Hello World!
print("Hello World!") print("Hello World!")
"""
#输入 食物名称 #输入 食物名称
input_food = input_food("今晚要吃什么:") input_food = input_food("今晚要吃什么:")
#输出 要吃的食物 #输出 要吃的食物
print("今晚我要吃-",input_food) print("今晚我要吃-",input_food)
\ No newline at end of file """
print("black")
\ No newline at end of file
counter = 100 counter = 100 #整数变量
miles = 100.0 miles = 100.0 #浮点变量
name = "bellcode" name = "bellcode" #字符变量
print(type(counter)) print(type(counter))
print(type(miles)) print(type(miles))
print(type(name)) print(type(name))
#连续赋值相同的值
a=b=c=1 a=b=c=1
print(a) print(a)
print(b) print(b)
print(c)
#连续赋值不同的值
a,b,c=1,2,3
print(a)
print(b)
print(c) 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