📜  在 str 中获取 rach 单词 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:00.500000             🧑  作者: Mango

代码示例1
# initializing string 
test_string = "Geeksforgeeks is best Computer Science Portal"
 
# printing original string
print ("The original string is : " +  test_string)
 
# using split()
# to extract words from string
res = test_string.split()
 
# printing result
print ("The list of words is : " +  str(res))