返回顶部

09 2018 档案

Python3.* ip地址查询
摘要:#encode:utf-8 import time import urllib.request import json f = "ip.txt" def ip_location(ip): url = "https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php?query={%s}&co=&resource_id=6006&t=15... 阅读全文

posted @ 2018-09-20 11:29 augustyang 阅读(288) 评论(0) 推荐(0)

lambda
摘要:#map z = [1,2,3,4,56] def func(x): return x+1 ll = list(map(func,z)) print(ll) print(list(map(lambda x:x+1,z))) #filter 过滤 z = [1,2,3,4,56] def func(x): if x>1: return (x) ret ... 阅读全文

posted @ 2018-09-06 20:52 augustyang 阅读(186) 评论(0) 推荐(0)

导航