阅读背景:

如何在Python中向函数传递大量变量?

来源:互联网 

I do scientific programming, and often want to show users prompts and variable pairs, let them edit the variables, and then do the calulations with the new variables. I do this so often, that I wrote a wxPython class to move this code out of the main program. You set up a list for each variable with the type of the variable (string, float, int), the prompt, and the variable's current value. You then place all of these lists in one big list, and my utility creates a neatly formated wxPython panel with prompts and the current values which can be edited.I do scientific programming, and often want to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: