成都网站建设设计

将想法与焦点和您一起共享

创新互联Python教程:python中井号怎么用

注释在编程中是很重要的部分。它能告诉你这段代码是干什么用的,或者用来删除一部分你暂时不需要执行的代码。下面演示的是如何在

创新互联建站专注于企业网络营销推广、网站重做改版、罗城网站定制设计、自适应品牌网站建设、H5技术商城开发、集团公司官网建设、成都外贸网站建设公司、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为罗城等各大城市提供网站开发制作服务。

python中使用注释:

# A comment, this is so you can read your program later.
# Anything after the # is ignored by python.

print "I could have code like this." # and the comment after is ignored

# You can also use a comment to "disable" or comment out a piece of code:
# print "This won't run."

print "This will run."

由上面可知,Python中的#是用来写注释的,而且一般是写单行注释。python学习网,免费的python学习网站,欢迎在线学习!


分享题目:创新互联Python教程:python中井号怎么用
文章转载:https://chengdu.cdxwcx.cn/article/djeeioe.html