import re h = open('作业一素材.txt', encoding = 'utf-8') a = h.read() b = a.splitlines() target = b[-3] c = re.findall(r'\s(\w*).$', target) x=c[0] len(x)
无