我有这个tkinter GUI,我需要从条目中获取值并进行比较. self.hystInt.get()是访问Entry中字符串变量中的字符串的方法.*我必须为每个变量写这个,所以它看起来真的很难看.
self.hystInt.get()
if (self.hystInt.get().isdigit() and int(self.hystInt.get()) >= 200 and int(self.hystInt.get()) <= 500):
python comparison
comparison ×1
python ×1