ArticleReplace/test.py

5 lines
111 B
Python

text = "```markdown你好的"
if "```markdown" in text:
text = text.replace("```markdown", "")
print(text)