📅  最后修改于: 2022-03-11 14:56:00.500000             🧑  作者: Mango
# 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))