I have the following string
mystr1 = 'mydirname'
myfile = 'mydirnamemyfilename'
I'm trying to do this
newstr = re.sub(mystr1 + "","",myfile)
How do I escape the backslash I'm trying to concatenate to mystr1?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…