diff options
Diffstat (limited to 'progs/a465.py')
-rw-r--r-- | progs/a465.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a465.py b/progs/a465.py new file mode 100644 index 0000000..cfd850d --- /dev/null +++ b/progs/a465.py @@ -0,0 +1,3 @@ +def snake_to_camel(word):
+ import re
+ return ''.join(x.capitalize() or '_' for x in word.split('_'))
\ No newline at end of file |