python基础操作代码实现

文件读取

文件输入

sys.stdin用法

sys.stdout用法(规定只能打印在终端上)

类方法

使用@classmethod装饰器,可以调用类变量

列表插入方法L.insert(index,boject)

修改字符串的内容replace.(old,new)


.

posted @ 2018-11-26 15:50  IndustriousHe  阅读(265)  评论(0编辑  收藏  举报