Answer the question
In order to leave comments, you need to log in
Stopping a program in Python 3.5?
OC: Microsoft Widows 7 Ultimate
Python version: 3.5
Development environment: Sublime Text 3
Hello everyone! Let's say I need a program that displays 2 inscriptions
print ("Hello")
print ("world!")
Answer the question
In order to leave comments, you need to log in
Since no one decided to give me an adequate answer, then I myself found the solution by accident print("Hello, world")
. when you start it not from the command line, it immediately opens and closes, you need to use time:
import time
print("Hello, world")
time.sleep(6)#К примеру 6 сек
But as soon as it starts and closes immediatelyThis is normal and natural behavior of the program.
Personally, I see a more correct solution with a script (since Windows is .bat-m).
@echo off
python3 script.py
pause
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question