![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
wind_space
这个作者很懒,什么都没留下…
展开
-
python 百度智能完善拆分识别收货人地址
from aip import AipNlp"""百度 智能识别地址"""def address(addr = ''): """ 你的 APPID AK SK """ APP_ID = '26030075' API_KEY = 'hdu8HVUqeGtpdiIF5ljH5ZPn' SECRET_KEY = 'MgMmCTmGiNwT2B56hzURAe3LGoYCr1wa ' client = AipNlp(APP_ID, API_KEY, SECRET_.原创 2022-04-22 17:14:23 · 1281 阅读 · 0 评论 -
python 设定程序执行超时后跳过
import timeimport eventlet #导入eventlet这个模块eventlet.monkey_patch() #必须加这条代码with eventlet.Timeout(2,False): #设置超时时间为2秒 print '这条语句正常执行' time.sleep(4) print '没有跳过这条输出'print '跳过了输出'...原创 2022-04-22 16:43:31 · 1467 阅读 · 0 评论