import zipfile, json, sys, io, os base = r"e:\MCStudioDownload\work\3027246179@qq.com\Cpp\AddOn\309c2d420bc84ee986db9cdd070ff02a\_sa_hanhua_out" jars = [f for f in os.listdir(base) if f.endswith('.jar')] for j in jars: p = os.path.join(base, j) print("=" * 30, j) with zipfile.ZipFile(p) as z: names = [n for n in z.namelist() if '/lang/' in n] for n in names: print(" ", n)