str.startswith()

img = "//img2018.cnblogs.com/news_topic/20190724165913200-2068844283.png"
if img.startswith("//"):
    img = "https:"+img

results matching ""

    No results matching ""