#action Blog Add Blog
##Blog
{{{#!blog Fibonacci 2005-03-13T07:32:09 2005-03-13
=== Python ¿¡¼ º¯¼ö¸í(°´Ã¼¸í)Àº ¾îµð¿¡ ÀúÀåÇÏ°í Àִ°¡? ===
{{{
import __main__
À» ÇÑ ÈÄ
__main__.__dict__
ÀÇ ³»¿ë º¸ÀÚ. \}}}
=== Python ¿¡¼ °´Ã¼ÀÇ class À̸§À» º¸·Á¸é? ===
{{{x°¡ ÁÖ¾îÁø °´Ã¼¶ó°í ÇÒ¶§,
x.__class__.__name__
À¸·Î °´Ã¼°¡ ¼ÓÇÑ classÀÇ À̸§À» ¾Ë ¼ö ÀÖ´Ù.\}}}
}}}
{{{#!blog ±èÁ¤¼ö 2005-03-12T07:27:41
=== Python Q/A ¿¡¼, reference °ü·Ã ===
http://bbs.python.or.kr/viewtopic.php?t=21319 Àοë
{{|"ÆÄÀ̽㿡¼ º¯¼ö¿Í ¼Ó¼ºÀº °ª ÀÚü°¡ ¾Æ´Ï¶ó °ª °´Ã¼ÀÇ ·¹ÆÛ·±½º(ref)¸¦ °¡Áý´Ï´Ù."|}}
Çϸé ÇÒ¼ö·Ï ÇÞ°¥¸®´Â...
}}}
{{{#!blog ±èÁ¤¼ö 2005-03-11T09:14:36 2005-03-11
=== Python ¿¡¼ ¸®½ºÆ®¸¦ º¹»çÇÏ´Â ¹æ¹ý ===
http://bbs.python.or.kr ¿¡¼ ÀοëÇÔ
{{|
{{{#!html
»çÀüÀ» º¹»çÇÏ´Â ¹æ¹ýÀº ¸®½ºÆ®¿Í ´Ù¸¨´Ï´Ù.
mydic = {!@!john!@!:1234, !@!paul!@!:5678}
newdic = mydic.copy()
ÇÏ¸é µË´Ï´Ù. copy ¸Þ½áµå°¡ ÀÖÁÒ. mydic ³»¿ëÀ» newdic¿¡ º¹»çÇØÁÝ´Ï´Ù.
±×·¯³ª mydicÀÌ °èÃþÀûÀÎ Á¤º¸¸¦ °¡Áö°í ÀÖÀ» ¶§ ÇÏÀ§ °èÃþÀÇ ÀÚ·á±îÁö ¸ðµÎ º¹»çÇÏ´Â °ÍÀº ¾Æ´Õ´Ï´Ù.
ÇÏÀ§ °èÃþÀÇ ÀÚ·á±îÁö ¸ðµÎ º¹»çÇÏ·Á¸é copy¸ðµâÀ» ÀÌ¿ëÇÕ´Ï´Ù.
import copy
newdic = copy.copy(mydic) # ÀÌ°Ç newdic = mydic.copy()¿Í °°½À´Ï´Ù.
newdic = copy.deepcopy(mydic) # ÇÏÀ§ ±¸Á¶±îÁö º¹»ç
ÀÌ copy ¸ðµâÀº ¸®½ºÆ®³ª ÅÍÇð°Àº ´Ù¸¥ °´Ã¼¿¡µµ Àû¿ëµË´Ï´Ù.
ÀÌ°¼º
\}}}
|}}
}}}
{{{#!blog ±èÁ¤¼ö 2005-03-06T09:53:47 2005-03-06
=== Firefox antialise ²ô±â ===
http://debianusers.org/jsboard/read.php?table=qna&no=22321 ÀοëÇÔ.
{{{ÀÏ´Ü, /etc/mozilla/prefs.js ÆÄÀÏÀ» ¿¾î¼ ´ÙÀ½ °ªÀ» ã½À´Ï´Ù. ¾øÀ¸¸é ¸¸µå½Ã±æ~
pref("font.antialias.min", 10);
±âº» °ªÀº ¹«·Á 10ÀÔ´Ï´Ù. ÀÏ¹Ý À¥ ÆùÆ® Å©±â°¡ 10ÀÌ´Ï...ÀÌ·±, ÀÌ°Ç AA¸¦ ±âº»ÀûÀ¸·Î ¹«Á¶°Ç Ų´Ù´Â ¼Ò¸®¶û ¸¶Âú°¡ÁöÁÒ;;
±×·¯´Ï...À§ÀÇ °ªÀ» 12³ª 14Á¤µµ·Î ¹Ù²ãÁÝ´Ï´Ù.
pref("font.antialias.min", 12);
ÀÌ·¯¸é Â¥Áõ³ª´ø ¸ðÁú¶ó/ÆÄÀ̾îÆø½ºÀÇ µ¹ÃâÇൿÀ» ÀáÀç¿ï¼ö ÀÖ½À´Ï´Ù -_-b \}}}
}}}