2016年8月24日

Python字典实现三级菜单

摘要: 1 ################################################ 2 # Task Name: 三级菜单 # 3 # Description:打印省、市、县三级菜单 # 4 # 可返回上一级 # 5 # ... 阅读全文

posted @ 2016-08-24 15:52 oliver.lee 阅读(6961) 评论(2) 推荐(1) 编辑

Python——string

摘要: 字符串操作 string典型的内置方法: count() center() startswith() find() format() lower() upper() strip() replace() split() join() count() 计数,查询字符串中出现指定字符的次数。 输出:2 c 阅读全文

posted @ 2016-08-24 15:49 oliver.lee 阅读(305) 评论(0) 推荐(0) 编辑

导航