adsense728x90


codejam 풀 때 필요했던 python 문법 02 Python

codejam 풀 때 필요했던 python 기본 문법


A. Charging Chaos


int and long were "unified" a few versions back. Before that it was possible to overflow an int through math ops.



5.7. Set Types — setfrozenset




od = collections.OrderedDict(sorted(d.items()))


for line in f:  if bar(line):    breakelse:  # will only be called if for loop terminates (all lines read)  baz()


>>> a={"1":"one","2":"two"}>>> a.has_key("1")True


덧글

댓글 입력 영역