小编Cli*_*ton的帖子

在获得输出后,如何阻止python.exe立即关闭?

有什么办法可以阻止python.exe在完成后立即关闭吗?它关闭的速度比我读取输出的速度快.

这是程序:

width = float(input("Enter the width: "))
height = float(input("Enter the height: "))
area = width * height
print("The area is", area, "square units.")
Run Code Online (Sandbox Code Playgroud)

python

32
推荐指数
5
解决办法
11万
查看次数

标签 统计

python ×1