cross-platform way; works everywhere
import os, sys
if sys.platform == 'win32':
os.system('pause')
else:
input('Press any key to continue...')
cross-platform way; works everywhere
import os, sys
if sys.platform == 'win32':
os.system('pause')
else:
input('Press any key to continue...')
@2019 - All Right Reserved oceanofanything
1 Comments
Very well logic.
ReplyDeleteI was finding a way to pause screen in Linux.
This is the best way. I can also change pause message.
Keep posting Such Blogs. I will support you.