Python 实现【最长公共前缀】 def longest_common_prefix:# 让用户输入字符串数组words = input("请输入字符串数组(用逗号分隔): ").split(",")if not words:print("@Zero")return# 取最短字符串,避免索引越 数组 python 字符串 words prefix 2025-04-01 11:03 3