# method1
file_path = 'C:\\temp\\Error_file_20210805.txt'
errorString = open(file_path,"r").read()
def getErrorTradeNumber(errorString):
str = 'Error Trades'
str_count
固定获取txt文件里面的某个数字
最新推荐文章于 2022-01-05 15:34:22 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)