【问题标题】:EasyGUI How to define input in if loop in python 2.7.11EasyGUI 如何在 python 2.7.11 的 if 循环中定义输入
【发布时间】:2016-04-30 21:54:43
【问题描述】:

我想知道如何将选择框的输入用于 if 循环。所有帮助表示赞赏! 例如:

title = 'Title'
msg = 'Message'
choices = ['Choice1', 'Choice2']
decided = choicebox(title, msg, choices)

if decided == 'Choice1':
    print'Choice 1 is a choice that you have selected.'

【问题讨论】:

    标签: python-2.7 if-statement easygui


    【解决方案1】:

    回答:就是那个代码!对不起!我正在输入记忆,但我没有检查我输入的内容,并且巧合的是,它有效!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-21
      • 2015-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-31
      相关资源
      最近更新 更多