單項選擇題

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

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

微信掃碼免費搜題