有什么方法可以使WatsonBuckets对调试有用

时间:2019-01-16 19:49:29

标签: c# error-handling

我正在将异常序列化并通过电子邮件发送给我,以便可以将这些信息用作调试材料。我想知道是否可以将WatsonBuckets属性用于任何有用的东西。

from tkinter import *

window = Tk()
base = '1,None,1'
items = StringVar(window, value=base)

def submit():
    x = items.get().split(',')
    results = []
    for item in x:
        if item.isdigit():
            results.append(int(item))
        elif item in ('None', 'none', None):
            results.append(None)
        else:
            results.append(item)

    print(results)

Entry(window, bg='white', textvariable=items).place(relx=0.1, rely=0.1, anchor='nw') 
Button(window, text='Submit', command=submit).place(relx=0.9, rely=0.9, anchor='se')

window.mainloop()

0 个答案:

没有答案