I made a blackjack game and a calculator following an online tutorial, however the only tutorial used replit module (from replit import clear -> clear() ) (replit being the website/online interpreter). I am now trying the same program in vscode:
Did you try "import os" at the beginning of code and using "os.system('clear')"? This should work on any OS or code editor/IDE.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.