# this program is used to catch the acronym
result = ''
inputdata = []
# input the phrase
inputdata = raw_input('please input the phrase ').upper().split()
for i in inputdata:
result += i[0]
print result
#剛才隨手刪掉了 inputdata = []一行結(jié)果報(bào)錯(cuò):
#AttributeError: 'builtin_function_or_method' object has no attribute 'split'。
原因是什么?沒(méi)看懂
多謝...腦袋有點(diǎn)不清楚,可能確實(shí)是誤操作了...
添加回答
舉報(bào)
0/150
提交
取消