import re
name = 'CamelCaseName'
name = re.sub(r'(?<!^)(?=[A-Z])', '_', name).lower()
print(name) # camel_case_name
Last active
September 9, 2024 05:00
-
-
Save hdknr/861dcda183ae26784f560f317a63a628 to your computer and use it in GitHub Desktop.
Python: 文字烈ケース変換
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment