python,tkinter,大神求解
def a( ):
global temp1
equation.set('请输入水平张力:')
temp1 = equation.get( )
def b( ):
global temp2
equation.set('请输入支柱受风力:')
temp2 = equation.get( )
def c( ):
global temp3
equation.set('请输入上绳拉力:')
temp3 = equation.get( )
def d( ):
global temp4
equation.set('请输入下绳拉力:')
temp4 = equation.get( )
def e( ):
global temp5
equation.set('请输入待校验容量:')
temp5 = equation.get( )
def run( ):
if temp5<temp1+temp2+temp3+temp4:
result.set('合格')
else:
result.set('不合格')
这段程序有什么问题,为什么最后运行只显示合格,求大神解答
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答
1条回答
为你推荐
- python,tkinter,大神求解
- python
- 1个回答
- python问题 求大神解答
- python
- tkinter
- 5个回答