我有一个空列表,它从用户的输入中获取其值 a[] 当我点击(按钮)时,我需要打印出列表中的第一个元素 然后当用户再次单击同一个按钮时,我需要将列表中的第二个元素打印出来,以此类推。 这是按钮
self.button3 = wx.Button(self.panel, label="add word",size=(100,50),pos=(650,220))
self.button3.Bind(wx.EVT_BUTTON, self.buttonloop)
这是我想在每次点击按钮时调用它的函数
^{pr2}$到目前为止我还没用。任何帮助都是感激的,如果你不理解我很好,我会重新编辑这篇文章或我会解释更多的评论
为什么不试试发电机呢?在
相关问题 更多 >
编程相关推荐