import jsonaa = "<unittest.runner.TextTestResult run=1 errors=0 failures=0>"把aa当场字符串进行截取print(aa[-13:-12])print()