«ü¬£¹Bºâ¤l¬O¤@Ó«_¸¹¥[¤W¤@Óµ¥¸¹ (:=)¡C
½d¨Ò
//Assign theNumber value of 10 to the variable x x := 10; //Assign the String value of "hello" to the //variable named greeting greeting := "hello";
¬Ûµ¥¹Bºâ¤l (=) ¬O¥Î¨ÓÀˬd¨âÓȬO§_¬Ûµ¥¡C¤@¯ë·|µo¥Íªº¿ù»~¬O¡A¦b·Qn¨Ï¥Î«ü¬£¹Bºâ¤l®É¡A«o»~¥Î¤F¬Ûµ¥¹Bºâ¤l¡C³o¥i¯à·|²£¥ÍÃø¸Ñªº¿ù»~°T®§¡A©ÎªÌ®Ú¥»¤£·|²£¥Í¿ù»~°T®§¡A¦]¬°¨Ï¥Î¬Ûµ¥¹Bºâ¤l¦b»yªk¤W¬O¥¿½Tªº¡C¨Ò¦p¡G
greeting = "hello";
¥H¤W¤½¦¡·|ÀˬdÅÜ¼Æ greeting ©Ò«O¯dªºÈ¬O§_µ¥©ó hello¡A¦pªG¬O¡A¹Bºâ¦¡ªºÈ¬O True¡A¦pªG¤£¬O¡A«h¹Bºâ¦¡ªºÈ´N¬O False¡C¦b¥ô¦ó±¡ªp¤U¡A³£¬O§¹¥þ¥¿½Tªº Crystal »yªk (°²©wÅÜ¼Æ greeting ¬O¦r¦êÅܼÆ)¡C