我一直试图让我能够了解我最近回来的价值,并在发言中加以使用,而不必回顾价值。
基本上,我有一段路段,要求有一个功能,使用户能够提供投入,然后将投入回馈到 lo中。
while selection() != 0: ## Calls the "WHAT WOULD YOU LIKE TO DO" list and if it is 0 quits the script
input() ## just so it doesn t go straight away
if selection.return == 1: ## This is what I would like to happen but not sure how to do it... I ve googled around a bit and checked python docs
参看:
if selection() == 1:
它将工作,但再次展示“WHAT WOULD YOU LIKE to DO”案文。
如果这是一个明显的解决办法,我会感到担忧,但会非常感激: