我试图理解result=" "这段代码中的语句。此代码用于创建首字母缩略词。
result=" "
def initials(phrase): words = phrase.split() **result = ""** for word in words: result += word[0] return result.upper()
python string
python ×1
string ×1