安迪_963

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 10 11 12 13 14

2016年1月26日

摘要: class Car:#外部类 class Door:#内部类 def open(self): print('open door') class Wheel: def run(self): print('car run') if __name__=="__ma... 阅读全文
posted @ 2016-01-26 13:32 Andy_963 阅读(3987) 评论(0) 推荐(0) 编辑

2015年12月24日

摘要: 1.capitalize() 将字符串的第一个字符改为大写 2.casefold() 将字符串所有字符改为小写 3.center(width) 将字符串居中,并用空格将字符串填充至width长度,空格均匀分布在两侧,当width<len(s)时没有效果 4.count(sub[,start[,end 阅读全文
posted @ 2015-12-24 15:06 Andy_963 阅读(2556) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14