全文 The whole conversation, with pinyin and English
伟杰:郑老师,我的小猫应该走到门口,可是它一直在原地转圈。
zhèng lǎo shī wǒ de xiǎo māo yīng gāi zǒu dào mén kǒu kě shì tā yì zhí zài yuán dì zhuàn quān
Weijie: Mr Zheng, my cat is supposed to walk to the door, but it keeps spinning on the spot.
郑老师:别着急,程序出错是很正常的。我们一行一行地检查。
bié zháo jí chéng xù chū cuò shì hěn zhèng cháng de wǒ men yì háng yì háng de jiǎn chá
Mr Zheng, the coding teacher: Don't worry. Programs going wrong is very normal. Let's check it line by line.
伟杰:第一步是往前走十步,第二步是向右转。好像没有问题。
dì yī bù shì wǎng qián zǒu shí bù dì èr bù shì xiàng yòu zhuǎn hǎo xiàng méi yǒu wèn tí
Weijie: Step one is move forward ten steps, step two is turn right. That looks fine.
郑老师:你再看看,这两步是不是放在重复积木里面了?
nǐ zài kàn kan zhè liǎng bù shì bu shì fàng zài chóng fù jī mù lǐ miàn le
Mr Zheng, the coding teacher: Look again. Are these two steps inside a repeat block?
伟杰:原来是这样!它一直重复向右转,所以才转圈。
yuán lái shì zhè yàng tā yì zhí chóng fù xiàng yòu zhuǎn suǒ yǐ cái zhuàn quān
Weijie: So that's it! It keeps repeating the right turn, so it goes round in circles.
郑老师:对了。找错误要有耐心,这叫做除错,程序员每天都在做。
duì le zhǎo cuò wù yào yǒu nài xīn zhè jiào zuò chú cuò chéng xù yuán měi tiān dōu zài zuò
Mr Zheng, the coding teacher: Right. Finding mistakes takes patience. It's called debugging, and programmers do it every day.
思琪:伟杰,你可以帮我看看吗?我的小狗一跑就不见了。
wěi jié nǐ kě yǐ bāng wǒ kàn kan ma wǒ de xiǎo gǒu yì pǎo jiù bú jiàn le
Siqi, a classmate: Weijie, could you have a look at mine? My dog disappears as soon as it runs.
伟杰:可以啊。你也学老师那样,我们一行一行地检查吧。
kě yǐ a nǐ yě xué lǎo shī nà yàng wǒ men yì háng yì háng de jiǎn chá ba
Weijie: Sure. Let's do what the teacher did and check it line by line.
思琪:找到了!它每次走一百步,跑到屏幕外面去了。谢谢你!
zhǎo dào le tā měi cì zǒu yì bǎi bù pǎo dào píng mù wài miàn qù le xiè xie nǐ
Siqi, a classmate: Found it! It moves a hundred steps each time, so it runs off the screen. Thank you!
郑老师:你们互相帮忙,做得很好。会改错,才是真正的高手。
nǐ men hù xiāng bāng máng zuò de hěn hǎo huì gǎi cuò cái shì zhēn zhèng de gāo shǒu
Mr Zheng, the coding teacher: You helped each other. Well done. Being able to fix mistakes is what makes a real expert.