python习题2

巩固练习

1.弄清楚“#”字符的作用,并且记住它的名字。

注释or临时禁用某行代码。

2.检查ex2.py

3.

1 #A comment,this is so you can read your programe later
2 #Anything after the #  is igorne by python
3 
4 print("I could have code like this.")#and the comment after is ignored
5 
6 #You can also use a comment to "disable" or comment out code
7 #print("This won't run.")
8 
9 print("This will run.")

 

posted @ 2018-11-15 15:31  yuriya  阅读(205)  评论(0)    收藏  举报