新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
創(chuàng)新互聯(lián)Python教程:python中井號(hào)怎么用
注釋在編程中是很重要的部分。它能告訴你這段代碼是干什么用的,或者用來(lái)刪除一部分你暫時(shí)不需要執(zhí)行的代碼。下面演示的是如何在

創(chuàng)新互聯(lián)建站專注于企業(yè)網(wǎng)絡(luò)營(yíng)銷推廣、網(wǎng)站重做改版、羅城網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5技術(shù)、商城開發(fā)、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)公司、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為羅城等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。
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中的#是用來(lái)寫注釋的,而且一般是寫單行注釋。python學(xué)習(xí)網(wǎng),免費(fèi)的python學(xué)習(xí)網(wǎng)站,歡迎在線學(xué)習(xí)!
分享文章:創(chuàng)新互聯(lián)Python教程:python中井號(hào)怎么用
瀏覽路徑:http://www.dlmjj.cn/article/djeeioe.html


咨詢
建站咨詢
