Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1429441
  • 博文数量: 244
  • 博客积分: 3353
  • 博客等级: 中校
  • 技术积分: 3270
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-09 17:56
文章分类

全部博文(244)

文章存档

2023年(7)

2022年(7)

2021年(4)

2020年(1)

2019年(2)

2017年(2)

2016年(3)

2015年(11)

2014年(20)

2013年(10)

2012年(176)

分类: WINDOWS

2012-06-12 19:08:08

class ConfigInputs:
    def inputs(self,**map):
        if 'aa' in map:
            print 'success'
            print 'aa',map['aa']
        if 'bb' in map:
            print 'bb pass'
        if 'cc' in map:
            print 'cc pass'

if __name__ == "__main__":
    print 'come here'
    ap = ConfigInputs()
    ap.inputs(aa='ccc',bb='xxx')



运行结果:
D:\Roboshop\roboshop_script\conn2_test\lib>python con_inputs.py
come here
success
aa ccc
bb pass
阅读(2169) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~