0

I've looked everywhere and can't seem to find a way to dump a variable into the command prompt. For example, if I have the following:

 def (self, edit):
      myvar = 'this is a string'

I would like to call a method that would show the value of myvar in the Sublime Command Prompt. Thanks.

4

1 回答 1

0

我是 python 新手,但 Sublime 只是向您展示了一个 Python 编译器。因此,您可以使用以下内容打印到命令行:

print(myvar)
于 2013-01-28T03:14:39.183 回答