- Python 字符串中空格替换(发现钉钉bug 解决)
钉钉机器人之前版本url都可以空格转译,突然一个版本不行了。索性直接把字符串的空全部替换转译符号%20
str="http://10.191.221.9:8020/report/hcbs7.9.0.020211021121233/Hcb_ios_Auto_UI_Test Report_shipper7.9.0.02021-10-21 11:30:21.html"
def replaceSpace1(s):
slist=list(s)
count=len(slist)
i=0
while (i


