Skip to content

Instantly share code, notes, and snippets.

@PttCodingMan
Created August 2, 2022 10:03
Show Gist options
  • Save PttCodingMan/bfd8daa0a157fe9bb117bb671479bf55 to your computer and use it in GitHub Desktop.
Save PttCodingMan/bfd8daa0a157fe9bb117bb671479bf55 to your computer and use it in GitHub Desktop.
移除所有標點符號
re.sub(r'[^\w\s]', '', c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment