python习题教程 全50个 (不定时更新)EP1

习题1:第一个程序(程序名:ex1.py)

程序代码:

1 print(“Hello World.”)
2 print(“Hello Again”)
3 print(“I like typing this.”)
4 print(“This is fun.”)
5 print(‘Yay! printing.’)
6 print(“I’d much rather you ‘not’.”)
7 print(‘I “said” do not touch this.’ )

注意:我没有键入行号, 它只是为了如 “参见第5行”
   windows 的终端要以管理员身份运行

应该看到的结果

python习题教程 全50个 (不定时更新)EP1_第1张图片
巩固练习

这里的内容是选做的,你可以不做。
1 让你的脚本再多打印一行
2 让你的脚本只打印一行

你可能感兴趣的:(python习题教程 全50个 (不定时更新)EP1)