Skip to content

Commit

Permalink
Merge pull request #19 from xiaoxiaoyao/patch-1
Browse files Browse the repository at this point in the history
增加Python调用,数据分析师常写Python
  • Loading branch information
wzc570738205 authored Mar 15, 2022
2 parents 6640fe1 + e365b13 commit 7546fb0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ import smart from 'address-smart-parse'
smart("陕西省西安市雁塔区丈八沟街道高新四路高新大都荟710061 刘国良 13593464918 211381198512096810")
```

### Python调用
```
import requests
URL='https://wangzc.wang/smAddress'
data=lambda x : r'{"address":"' + x + '"}'
address=r'陕西省西安市雁塔区丈八沟街道高新四路高新大都荟710061 刘国良 13593464918 211381198512096810' # address
requests.post(url=URL,data=data(address).encode('utf-8'))
print(res.json()) # output
```


## 生成数据格式
```json
Expand Down

0 comments on commit 7546fb0

Please sign in to comment.