码迷,mamicode.com
首页 > 其他好文 > 详细

day03

时间:2017-09-17 22:51:01      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:div   sele   inpu   span   day   int   data   print   nbsp   

  

def select():
    print(select功能)
def delete():
    print(delete功能)
def insert():
    print(insert功能)
def updata():
    print(updata功能)

dic = {
    select:select,
    delete:delete,
    insert:insert,
    updata:updata
}

def main ():
    while True:
        inp=input(>>).strip()
        if not inp:continue
        for i in dic:
            if inp in i:
                inp()
        # if inp == ‘select‘:
        #     select()
        # elif inp ==‘delete‘:
        #     delete()
        # elif inp ==‘insert‘:
        #     insert()
        # elif inp == ‘updata‘:
        #     updata()
        # else:
        #     print(‘输入有误.‘)
        #     continue
main()

 

day03

标签:div   sele   inpu   span   day   int   data   print   nbsp   

原文地址:http://www.cnblogs.com/sunkedong/p/7538265.html

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