Skip to content

Commit

Permalink
增加Python调用,数据分析师常写Python
Browse files Browse the repository at this point in the history
增加以下内容:

### 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
```
  • Loading branch information
xiaoxiaoyao authored Mar 15, 2022
1 parent 6640fe1 commit e365b13
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 e365b13

Please sign in to comment.