單項(xiàng)選擇題

在Python中,如何計(jì)算一個(gè)字符串中的單詞數(shù)?()

A.len(str.split())
B.str.count(’’)+1
C.str.words()
D.countWords(str)

微信掃碼免費(fèi)搜題