s = str.split("Hello World") # ['Hello', 'World'] s = "Hello World".split() # ['Hello', 'World'] s = str.upper("Hello World") # HELLO WORLD s = str.isalpha('56') # False print(s)
str.split("Hello World") 类方法使用方法:类名.方法名(“参数”)
标签:split,str,World,方法,Hello,类名 From: https://www.cnblogs.com/sangern/p/17413571.html