用户:
白水WhiteWater点猫账号专门发帖查看:0 回复:0 评论:0 创建时间:2023-01-16T13:04:12
大家好,我是文件的py小助手,这期带大家建造一个竖式生成器
第一步:
建造基础代码:
import time
第二步:
写入欢迎语:
import time
print("Welcome to the vertical generator, where you can generate a vertical form of addition, subtraction, multiplication and division, the current version number: 0.012")
time.sleep(0.5
第三步:
写入判断等
import time
print("Welcome to the vertical generator, where you can generate a vertical form of addition, subtraction, multiplication and division, the current version number: 0.012")
time.sleep(0.5)
print()
a = input("请选择运算符号:\n+\n-")
if a == "+":
elif b == "-":
第四步:
加入个位十位的变量
import time
print("Welcome to the vertical generator, where you can generate a vertical form of addition, subtraction, multiplication and division, the current version number: 0.012")
time.sleep(0.5)
print()
a = input("请选择运算符号:\n+\n-")
if a == "+":
a = input("请输入:")
b = input("请输入:")
elif b == "-":
接下来等会在讲