[英]how do I import replit module to python?
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).我按照在线教程制作了二十一点游戏和计算器,但是唯一的教程使用了 replit 模块(来自 replit import clear -> clear() )(replit 是网站/在线解释器)。 I am now trying the same program in vscode:我现在在 vscode 中尝试相同的程序:
Did you try "import os" at the beginning of code and using "os.system('clear')"?您是否在代码开头尝试过“import os”并使用“os.system('clear')”? This should work on any OS or code editor/IDE.这应该适用于任何操作系统或代码编辑器/IDE。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.