随笔分类 -  python

摘要:list list 元组 元组 ('a','b','c') 元组是不可变的,即不能修改,而list是可变的 阅读全文
posted @ 2018-01-24 10:15 cling_chen 阅读(105) 评论(0) 推荐(0)
摘要:"""根据params和testData来组装dataValue #d是需要动态获取的参数及对应方法名的字典 遍历每个参数,如果参数需要动态获取,则调用动态获取的方法。反之,直接写入dateValue里""" 阅读全文
posted @ 2018-01-24 10:13 cling_chen 阅读(125) 评论(0) 推荐(0)
摘要:>>> d = dict(vcode='Get_vcode', date='Get_vdate') >>> print d {'date': 'Get_vdate', 'vcode': 'Get_vcode'} >>> 'vcode' in d.keys() True >>> 'v' in d.ke 阅读全文
posted @ 2018-01-24 10:11 cling_chen 阅读(123) 评论(0) 推荐(0)
摘要:#!/usr/bin/python是告诉操作系统执行这个脚本的时候,调用/usr/bin下的python解释器; #!/usr/bin/env python这种用法是为了防止操作系统用户没有将python装在默认的/usr/bin路径里。当系统看到这一行的时候,首先会到env设置里查找python的 阅读全文
posted @ 2018-01-24 10:07 cling_chen 阅读(175) 评论(0) 推荐(0)