用for循環求句中最長的單詞的長度?
word = input("please enter words:")
word = word.split(" ") //以空格分隔
maxlen = max(len(jg) for jg in word)
print(maxlen)
用for循環求句中最長的單詞的長度?
word = input("please enter words:")
word = word.split(" ") //以空格分隔
maxlen = max(len(jg) for jg in word)
print(maxlen)