목록PYTHON (19)
yc0325lee
#!/usr/bin/env python # -*- coding:utf-8 -*- # vim: ft=python ts=4 sw=4 tw=78 expandtab # ---------------------------------------------------------------------------- # - file : lib__pandas.py # - author : yc0325lee # - created : 2022-12-07 23:52:53 by yc032 # - modified : 2022-12-07 23:52:53 by yc032 # - description : # - references # ; https://pandas.pydata.org/docs/index.html # --------------..
#!/usr/bin/env python # -*- coding:utf-8 -*- # vim: ft=python ts=4 sw=4 tw=78 expandtab # ---------------------------------------------------------------------------- # - file : lib__matplotlib_hist.py # - author : yc0325lee # - created : 2022-12-07 22:55:11 by yc032 # - modified : 2022-12-07 22:55:11 by yc032 # - description : # ------------------------------------------------------------------..
#!/usr/bin/env python # -*- coding:utf-8 -*- # vim: ft=python ts=4 sw=4 tw=78 expandtab # ---------------------------------------------------------------------------- # - file : lib__matplotlib.py # - author : yc0325lee # - created : 2022-12-04 19:48:06 by yc032 # - modified : 2022-12-04 19:48:06 by yc032 # - description : # - references # ; https://www.analyticsvidhya.com/blog/2020/05/10-matplo..
#!/usr/bin/env python # -*- coding:utf-8 -*- # vim: ft=python ts=4 sw=4 tw=78 expandtab # ---------------------------------------------------------------------------- # - file : E_Commerce_Shopping.py # - author : yc0325lee # - created : 2022-12-01 23:19:33 by yc032 # - modified : 2022-12-01 23:19:33 by yc032 # - description : # - case study # ; refactoring strategy pattern # - strategy design p..
#!/usr/bin/env python # -*- coding:utf-8 -*- # vim: ft=python ts=4 sw=4 tw=78 expandtab # ---------------------------------------------------------------------------- # - file : misc__property_decorator.py # - author : yc0325lee # - created : 2022-11-21 22:21:33 by yc032 # - modified : 2022-11-21 22:21:33 by yc032 # - references # ; https://www.daleseo.com/python-property/ # ; https://docs.pytho..
#!/usr/bin/env python # vim: ft=python ts=4 sw=4 tw=78 expandtab # -*- coding:utf-8 -*- # ---------------------------------------------------------------------------- # - file : with_statement.py # - author : yc0325lee # - created : 2022-11-14 23:25:57 by yc032 # - modified : 2022-11-14 23:25:57 by yc032 # - references # ; https://realpython.com/python-with-statement/ # - description : # ; simpl..
# vim: ft=python ts=4 sw=4 tw=78 expandtab # -*- coding:utf-8 -*- # ---------------------------------------------------------------------------- # - file : algorithm__draw_tree.py # - author : yc0325lee # - created : 2022-11-04 21:37:02 by lee2103 # - modified : 2022-11-06 23:24:42 by yc032 # - description : # ---------------------------------------------------------------------------- #import c..
# vim: ft=python ts=4 sw=4 tw=78 expandtab # -*- coding:utf-8 -*- # ---------------------------------------------------------------------------- # - file : test__matching_attrlist.py # - author : yc0325lee # - created : 2022-10-31 23:30:26 by lee2103 # - modified : 2022-10-31 23:30:26 by lee2103 # - description : # ---------------------------------------------------------------------------- impo..
### ----------------------------------- ### defining functions ### # - if no 'return value' statement, 'None' returned # - multiple value return -> function 외부로 tuple이 전달됨 # - 매개변수(parameter) vs 인수(arguments) # - 'global' to access global variable inside a function # - return value가 생략되면 'None'이 return됨 # - multiple value들이 return시 tuple로 전달됨 if False: # define a function with no arguments and n..
# vim: ft=python ts=4 sw=4 tw=999 expandtab # -*- coding:utf-8 -*- # ---------------------------------------------------------------------------- # - file : Vector.py # - author : yc0325lee # - created : 2022-10-30 22:40:44 by lee2103 # - modified : 2022-10-30 22:40:44 by lee2103 # - description : # ---------------------------------------------------------------------------- # - vector take #1: ..