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