摘要:
class Car:#外部类 class Door:#内部类 def open(self): print('open door') class Wheel: def run(self): print('car run') if __name__=="__ma... 阅读全文
摘要:
class Car:#外部类 class Door:#内部类 def open(self): print('open door') class Wheel: def run(self): print('car run') if __name__=="__ma... 阅读全文
摘要:
1.capitalize() 将字符串的第一个字符改为大写 2.casefold() 将字符串所有字符改为小写 3.center(width) 将字符串居中,并用空格将字符串填充至width长度,空格均匀分布在两侧,当width<len(s)时没有效果 4.count(sub[,start[,end 阅读全文
|