总结(Summary)
你做到了!这是相当大的一章:你学习了关于variables, scalar and compound data type, functions, comments, if expressions, and loops! 讨论并练习这些概念。尝试构建如下的程序:
- 相互转换摄氏与华氏温度(Convert temperatures between Fahrenheit and Celsius.)
- 生成n阶斐波那契数列(Generate th nth Fibonacci number.)
- 打印圣诞颂歌词,并利用歌词中的重复部分(编写循环)(Print the lyrics to the Christmas carol “The Twelve Days of Christmas,” taking advantage of the repetition in the song.)
当你准备好继续的时候,让我们讨论一个其他语言中不常见的概念:所有权(ownership)