words=["python","ai","machine learning","data","nlp"]
longest=words[0]
for w in words:
	if len(w) > len(longest):
		longest = w
print(f'最长的字符串是"{longest}"，长度为{len(longest)}')