전체 글
-
기본문법Python 2011. 2. 5. 21:53
흠... 쓸랑가? my_list = ["a", "b", "c"]for i,name in enumerate(my_list): print i, name --- # -*- coding: ms949 -*-print '한글' --- import refor test_string in ['555-1212', 'ILL-EGAL']: if re.match(r'^\d{3}-\d{4}$', test_string): # raw string r/ R/ print test_string, 'is a valid US local phone number' else: print test_string, 'rejected' --- #!/usr/bin/env python# This program adds up integers in the co..
-
-