python語言的自學之路

來源:互聯網
上載者:User

標籤:python

       之前粗略看過一次python的語言,文法簡單。由於時間過了太久,好像有兩年了吧(之前就是純粹想知道python是什麼才看的),也不記得什麼了,只是記得它沒有c語言和java語言難就是了。

       根據這個網站中的資料可以很快入手python:http://www.runoob.com/python/python-chinese-encoding.html。偉大征程從此開始……

 650) this.width=650;" src="http://img.baidu.com/hi/jx2/j_0003.gif" alt="j_0003.gif" />

650) this.width=650;" src="http://img.baidu.com/hi/jx2/j_0003.gif" alt="j_0003.gif" />650) this.width=650;" src="http://img.baidu.com/hi/jx2/j_0003.gif" alt="j_0003.gif" />

650) this.width=650;" src="http://img.baidu.com/hi/jx2/j_0003.gif" alt="j_0003.gif" />650) this.width=650;" src="http://img.baidu.com/hi/jx2/j_0003.gif" alt="j_0003.gif" />650) this.width=650;" src="http://img.baidu.com/hi/jx2/j_0003.gif" alt="j_0003.gif" />


        對於helloworld,我就直接跳過了,這一步就如同,廚房裡面燒菜前,看一下廚房是否乾淨、是否有水龍頭等。

       底線在python有特殊用處

    • 以底線“_”開頭的,表示不能直接存取的屬性,類似java裡面的private關鍵字作用。

    • 以雙底線“__”代表類的私人成員。

    • 以雙底線開頭並結尾的“__xxx__()”表示專用函數,如建構函式“__init__()”

                

python語言的自學之路

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.