學習筆記:python

來源:互聯網
上載者:User

標籤:

Python 3.3

http://rj.baidu.com/soft/detail/25283.html   

Python 3.3
大小:20.2M 版本:3.3.5150
位元:64 更新日期:2014-03-14

在本機運行*.py檔案: c:\Python33\python zz.py

http://jingyan.baidu.com/article/a378c9608fbf7db3282830f6.html editplus配置python開發環境

http://blog.jobbole.com/72306/   python 開源架構

 

 

 

 

 

 

 

 

 

 

練慣用的程式碼片段
#儲存檔案if __name__ == ‘__main__‘:      string = input(‘please input string:‘)      with open(‘d:/test.txt‘, ‘a‘) as file:          file.write(string)      file.close()  

 

#輸入兩個數字,排序x = int(input(‘please input x:‘))  y = int(input(‘please input y:‘))  if x > y :      x, y = y, x print(x,y)

 

#扒取頁面並儲存import urllib.request as request  def ccccc(url):          sName = ‘d:/test.txt‘          print(‘正在下載頁面, 並儲存‘)          m = request.urlopen(url).read()        with open(sName,‘wb‘) as file:              file.write(m)          file.close()  if __name__ == "__main__":      url = "http://www.163.com/"      ccccc(url)  

 

學習筆記: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.