240 投稿
收录了16篇文章 · 1人关注
  • exercise 21

    练习 如果你不是很确定return的功能,尝试自己写几个函数出来,让它们返回一些值。你可以将任何可以放在=右边的东西作为一个函数的返回值。 这个...

  • exercise 20

    第一次print_a_line被调用, current_line被赋值1第二次print_a_line被调用, current_line被赋值2...

  • exercise 19

    练习 倒着将脚本读完,在每一行上面添加一行注解,说明这行的作用。 从最后一行开始,倒着阅读每一行,读出所有的重要字符来。 自己编至少一个函数出来...

  • exercise 18

    练习为自己写一个函数注意事项以供后续参考。你可以写在一个索引卡片上随时阅读,直到你记住所有的要点为止。注意事项如下: 函数定义是以 def 开始...

  • exercise 17

    练习 4.不关闭文件,它会直到程序结束为止一直占用系统资源点我有惊喜 资料1资料2 exercise15~17小结:建立文件打开文件读取文件写入...

  • exercise 16

    练习 If you do not understand this, go back through and use the comment tr...

  • exercise 15

    练习 Above each line, write out in English what that line does. If you are...

  • exercise 14

    练习 Find out what the games Zork and Adventure were. Try to find a copy a...

  • exercise 13

    注意: 一定要用命令行,通过$ python ex13.py first 2nd 3rd命令运行程序 练习 Try giving fewer t...

  • exercise 12

    练习 In Terminal, where you normally run python3.6 to run your scripts, ty...

专题公告

第四版
python3