python优秀库
python内置模块,对于想要了解代码背后所发生的事情非常有帮助。
import inspect
print(inspect.getsource(inspect.getsource)) #输出inspect中getsource函数的源代码
print(inspect.getmodule(inspect.getmodule)) #输出inspect模块的基本信息
print(inspect.currentframe().f_lineno) #输出自己的行号
通过抽取一系列不同的地理编码服务APIs工作,使你能够获得一个地方完整街道地址,经纬度和海拔。
$pip install geopy #非内置库
from geopy import GoogleV3
place = '22b Baker Street, London'
location = GoogleV3().geocode(place) #关于国内Google使用。。
print(location.address)
print(location.location)
这个内置库为coder提供了更多的数据类型。
from collection impor