a='sentence'
print(a[3])
fruits=['苹果','栗子','荔枝','梨子']
print(fruits)
words=['python','ai','date','abc','efghj','machine learning']
longest=words[0]
for x in words:
if len(x)>len(longest):
longest=x
print(f"最长的字符串是'{longest}',长度为{len(longest)}")
YT0nc2VudGVuY2UnCnByaW50KGFbM10pCmZydWl0cz1bJ+iLueaenCcsJ+agl+WtkCcsJ+iNlOaenScsJ+aiqOWtkCddCnByaW50KGZydWl0cykKd29yZHM9WydweXRob24nLCdhaScsJ2RhdGUnLCdhYmMnLCdlZmdoaicsJ21hY2hpbmUgbGVhcm5pbmcnXQpsb25nZXN0PXdvcmRzWzBdCmZvciB4IGluIHdvcmRzOgogICAgaWYgbGVuKHgpPmxlbihsb25nZXN0KToKICAgIAlsb25nZXN0PXgKICAgIAlwcmludChmIuacgOmVv+eahOWtl+espuS4suaYryd7bG9uZ2VzdH0nLOmVv+W6puS4untsZW4obG9uZ2VzdCl9Iik=