import webbrowser
import pyperclip
address=pyperclip.paste()
webbrowser.open('https://www.amap.com/search?query='+address+'&geoobj=116.388238%7C39.905805%7C116.40372%7C39.912047&zoom=17')
粘贴‘中关村’执行上面代码,浏览器一键访问
用之前你需要安装个pyperclip模块
pip pyperclip