如题所述
Stringå½æ°æ¯äº§çè¿ç»çãéå¤çå符串ï¼$å¯ä»¥çç¥ã第ä¸ä¸ªåæ°æ¯éå¤ç次æ°ï¼ç¬¬äºä¸ªåæ°æ¯è¦éå¤çå符ï¼å°½ç®¡è¿ä¸ªåæ°å¯ä»¥æ¯å符串ï¼ä½çæ£èµ·ä½ç¨çæ¯ç¬¬ä¸ä¸ªå符ï¼æ以å®é
ä¸åªè¦ä¸ä¸ªå符å³å¯ï¼ãæ¯å¦ï¼
Print String(8, "a")
æ¾ç¤ºç»æ为
aaaaaaaa
å³8个aè¿èµ·æ¥æ为ä¸ä¸ªå符串ã
第äºä¸ªåæ°ä¹å¯ä»¥æ¯ä¸ªæ°å¼ï¼è¿ä¸ªæ°å¼å°±æ¯è¦éå¤çå符çASCIIç ãæ¯å¦ï¼
Print String(8, 97)
æ¾ç¤ºç»æä¹æ¯
aaaaaaaa
Print String(8, "a")
æ¾ç¤ºç»æ为
aaaaaaaa
å³8个aè¿èµ·æ¥æ为ä¸ä¸ªå符串ã
第äºä¸ªåæ°ä¹å¯ä»¥æ¯ä¸ªæ°å¼ï¼è¿ä¸ªæ°å¼å°±æ¯è¦éå¤çå符çASCIIç ãæ¯å¦ï¼
Print String(8, 97)
æ¾ç¤ºç»æä¹æ¯
aaaaaaaa
温馨提示:答案为网友推荐,仅供参考