问题一: TypeError: 'str' object is not callable 产生原因: 该错误TypeError: 'str' object is not callable字面上意思:就是str不可以被系统调用, 其实原因就是:你正在调用一个不能被调用的变量或对象,具体表现就是你调用函数.变量的方式错误. 例子: filePath=kwargs['path'] filePathStr=str(filePath) 也就是自己在用的是关键字参数传参,传过来的时候是什么类型,传过来就是什…
#region 调用windows系统dialog 选择文件夹 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public class OpenDialogFile { public int structSize = 0; public IntPtr dlgOwner = IntPtr.Zero; public IntPtr instance = IntPtr.Zero; public String filter =…