1. 在python里windows有效路径格式
filepath = 'D:/mywork/2021/stdout.txt'
2. python isinstance() 函数来判断一个对象是否是一个已知的类型,类似 type()。
isinstance(reader, list)---->判断reader是不是list类型
1. 在python里windows有效路径格式
filepath = 'D:/mywork/2021/stdout.txt'
2. python isinstance() 函数来判断一个对象是否是一个已知的类型,类似 type()。
isinstance(reader, list)---->判断reader是不是list类型