¤¤Á¯­º­¶ ³Ì·s®ø®§ µ{¦¡¤U¸ü »¡©ú¤å¥ó
¤¤Á¯ªÀ°Ï ¶}µo¤p²Õ ÁcÅé¦rª© English
¤¤Á¯¤åÀÉ
¤¤Á¯¤Jªù
µ{¦¡½d¨Ò
°Ñ¦Ò¤â¥U
 
µ{¦¡½d¨Ò
¤¤Á¯¥[ªo
Ác²¤¬´«
º~¦r°ò¦]¦r¨å
°Ñ¦Ò¤â¥U²£¥Í¾¹
 
¹q¶l§Ú­Ì
glaze at chinesepython.org
 
Google

 
  

#!/usr/local/bin/cpython
¦^µª = Ū¤J('§A»{¬°¤¤¤åµ{¦¡»y¨¥¦³¦s¦b»ù­È¶Ü ? (¦³/¨S¦³)')

¦p ¦^µª == '¦³':
	¼g '¦n§a, Åý§Ú­Ì¤@°_§V¤O!'
¤£µM ¦^µª == '¨S¦³':
	¼g '¦n§a,¤¤¤å¨Ã¨S¦³§@¬°µ{¦¡»y¨¥ªº»ù­È.'
§_«h:
	¼g '½Ð»{¯u¦Ò¼{«á¦A¦^µª.'
  • ³o­Óµ{¦¡¥Ü½d¤F¦p¦ó¨ú±o¥Î¤á¿é¤J©Mµ{¦¡ªº¬yµ{±±¨î.
  • ¤T¤Þ¸¹ªº¥Îªk¦b·sª©¥»2.1.3-0.4¤¤¤w¨ú®øª`·N³s¤T¤Þ¸¹ªº¥Îªk. ¤@¯ë¤Þ¸¹¤¤ªº¦r¦êªº¤º®e¬O«O¯d¤£Åܪº, ¦ý¬O¦pªG¬O³s¤T¤Þ¸¹¤¤ªº¤º®e·|¦Û°ÊÅÜ´«¦¨§YĶ¾¹ªº¤º³¡½s½X(BIG5).
  • ³oùإܽd¤F§P§O¦¡¤À¬y, "¦p -- ¤£µM -- §_«h" µ¥©ó¬O­^¤åªº "if -- else if -- else" ªº¥Îªk.
  • ­n¯S§O¯d·Nµ{¦¡¤¤½X°Ïªº¤À¬q¤èªk. ¸ò c, perl «Ü¤£¤@¼Ëªº¬O§A¬Ý¤£¨ì¦³ "{", "}" ³o¼Ëªº²Å¸¹. ¨ú¦Ó¥N¤§ªº¬O¤@­PªºÁY±Æ¤èªk.