在 Sublime 文本中显示 Python 输出 [英] Display Python Output in Sublime text

查看:48
本文介绍了在 Sublime 文本中显示 Python 输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python 新手 &崇高

New to Python & Sublime

问题:我输入'打印(你好世界")

Problem: I type 'print ("Hello world")

如何让它向我显示输出(Hello world),它是否在单独的窗口中?或者...

How do I get it to show me the output (Hello world), is it in a separate window? or...

我知道我可以使用内置的 Python 控制台,但这是一个命令行,当我使用大量代码时,如何获得输出?

I understand I can use the Python Console built in, but that's a command line, what about when I get to use a ton of code, how do I get the output?

推荐答案

点击 tools > build systems > 选择 Python,然后 Build with using ctr+shif B 并选择 python,它会工作.第二次你可以使用构建命令, ctr + B 因为 python 现在被设置为默认

Click on tools > build systems > select Python, then Build with using ctr+shif B and select python, and it ll work. Second time you can use the build command, ctr + B since python is now set as default

这篇关于在 Sublime 文本中显示 Python 输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆