import re shuru = input() actions = []; numbers = [] # 对输入进行处理 pattern = r"(?<![\w])(?P<action>[ASWD])(?P<number>\d+);" matchIter = re.finditer(pattern=pattern, string=shuru) for m in matchIter: &...