-->
当前位置:首页 > 题库 > 正文内容

程序填空题:本题目练习注释的功能。

Luz4年前 (2021-05-10)题库1383
本题目练习注释的功能,请结合输出样例,在适当的位置添加注释。

```python
# A comment, this is so you can read your program later.
@@[#](1) Anything after the # is ignored by python.
@@[print](1)("I could have code like this.") @@[#](1) and the comment after is ignored
@@[# ](1)You can also use a comment to "disable" or comment out a piece of code:
# print("This won't run.")
@@[print](1)("This will run.")
```

### 输出样例:
```
I could have code like this.
This will run.
```






答案:
第1空:#

第2空:print

第3空:#

第4空:#

第5空:print

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。