摘要: __author__ = '12711'#-*- coding:utf-8 -*-'''info={ '0001':"xiaoming", '0002':"xiaohua", '0003':"xiaohong", '0004':"xiaonv" #格式info{'Key':"name",' '," 阅读全文
posted @ 2018-09-19 17:48 知冬 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python# -*- coding:utf-8 -*-name = "KXK \tis your {name} and i am {year} old"print(name.capitalize()) #首字母大写print(name.count("K")) #统计有 阅读全文
posted @ 2018-09-19 16:10 知冬 阅读(192) 评论(0) 推荐(0) 编辑