python url 的格式化

code

>>> a="192.168.0.5:5000"

>>> f'http://{a}/chain'

'http://192.168.0.5:5000/chain'

 

 

 

 

 

posted @ 2020-08-23 10:54  anobscureretreat  阅读(678)  评论(0编辑  收藏  举报