得到的错误如下:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\hi\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "E:/python1/sp/chuangkou.py", line 33, in kaishi
data=open(strPath)
TypeError: expected str, bytes or os.PathLike object, not StringVar