import re def run(): words = input().lower() char = input().lower() if not 1 <= len(words) <= 1000: print('第一行输入的字符长度必须在1到1000之间') return if not re.fullmatch(r'[a-zA-Z0-9\s]+', words): print('第一行输入的字符必须是数字、字母或者空格') return if not re.match(r'^\w$', char): print('第二行必须输入一个字符') return print(words....