Commit f77ae350 by BellCodeEditor

save project

parent 7bc59975
Showing with 23 additions and 1 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
print("Hello World!") print("Hello World!")
""" """
#输入 食物名称 #输入 食物名称
input_food = input_food("今晚要吃什么:") input_food = input("今晚要吃什么:")
#输出 要吃的食物 #输出 要吃的食物
print("今晚我要吃-",input_food) print("今晚我要吃-",input_food)
""" """
...@@ -18,3 +18,9 @@ print("x-y=",x-y) ...@@ -18,3 +18,9 @@ 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)
# 幂次方运算
print("x**y=",x**y)
\ No newline at end of file
...@@ -14,3 +14,14 @@ a,b,c=1,2,3 ...@@ -14,3 +14,14 @@ a,b,c=1,2,3
print(a) print(a)
print(b) print(b)
print(c) print(c)
x=21
print("第一次查看:",type(x))
x=float(x)
print("第二次查看:",type(x))
x=21
y=8
z=complex(x,y)
print(z)
print(type(z))
input_d=int(input("长:"))
input_h=int(input("高:"))
print"mj=",input_d
\ 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