# 接收来自命令行输入的数据 def receive_strings(): num = int(input()) # 创建一个字典动态存储输入的字符串 strings_dict = {} # 读取字符串输入 for i in range(num): strings_dict[f"string_{i+1}"] = input("") # 计算输入的字符串的长度 li = [] result = [] for key, value in strings_dict.items(): length = len(value) li.append(length) #...