码迷,mamicode.com
首页 > 编程语言 > 详细

Python之路-字符编码&数据类型补充(待更新)

时间:2017-04-04 20:10:58      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:play   rip   his   编码   amp   分享   logs   hid   put   

作业

三级菜单程序 

技术分享
history =[menu]
while True:
    for item in history[-1]:
        print(item)
    choice = input("input your choice :").strip()
    if choice == b and len(history) > 1:
        history.pop()
    elif choice == q: break
    else:
        if choice in history[-1]:
            history.append(history[-1][choice])
View Code

 

Python之路-字符编码&数据类型补充(待更新)

标签:play   rip   his   编码   amp   分享   logs   hid   put   

原文地址:http://www.cnblogs.com/yangming111/p/6666170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!