在运行python程序期间获取Visual Stdio代码时出错

在运行python程序期间获取Visual Stdio代码时出错,python,python-3.x,Python,Python 3.x,我的代码是: from tkinter import * window = Tk() button1 = Button(window, text = 'Execute') button1.grid(row = 0, column= 0) input1 = Entry(window) input1.grid(row = 0, column = 1) text1 = Text(window, height = 1, width = 20) text1.grid(row = 0, column

我的代码是:

from tkinter import *

window = Tk()

button1 = Button(window, text = 'Execute')
button1.grid(row = 0, column= 0)

input1 = Entry(window)
input1.grid(row = 0, column = 1)

text1 = Text(window, height = 1, width = 20)
text1.grid(row = 0, column = 2)

window.mainloop()
错误是:

[pylint] F0002:<class 'RuntimeError'>: generator raised StopIteration
[pylint]F0002::生成器引发的停止迭代

还附上了供参考。

pip安装——在不使用Visual Studio的情况下运行pylint astroidRun?该代码在我的Linux机器上运行良好,从终端开始,也许你应该在Windows中尝试CMD,看看它是否工作。