Skip to content

Instantly share code, notes, and snippets.

@yong27
Last active December 17, 2015 00:09
Show Gist options
  • Save yong27/5519148 to your computer and use it in GitHub Desktop.
Save yong27/5519148 to your computer and use it in GitHub Desktop.
Idioms for Hangul Python programming. It's for Python 3.
import unittest
class 유형:
def __init__(자기, *인수, **키워드인수):
자기.생성될때(*인수, **키워드인수)
class 시험사례(unittest.TestCase):
같아야함 = unittest.TestCase.assertEquals
class 배열(list):
추가 = list.append
class 사전(dict):
가져오기 = dict.get
class 문자(str):
연결 = str.join
뒤집기 = reversed
빈문자로연결 = 문자().연결
@yong27
Copy link
Author

yong27 commented May 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment