Learning notes: Python

Source: Internet
Author: User
Tags save file

Python 3.3

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

Python 3.3
Size: 20.2M version: 3.3.5150
Number of digits: 64 update: 2014-03-14

Run *.py file on this computer: c:\Python33\python zz.py

http://jingyan.baidu.com/article/a378c9608fbf7db3282830f6.html EditPlus Configuring the Python development environment

Http://blog.jobbole.com/72306/python Open Source Framework

Code snippet for Practice
# Save File if __name__ ' __main__ ' :       = input ('Please input string:') with      open ('d:/ Test.txt'a') as file:          file.write (String)      File.close ()  

# enter two numbers, sort x = Int (input (' pleaseinput x:'))  = Int (input (' Please input y: ' ) ifx > y:      = print (x, y)   

#pick up page and saveImportUrllib.request as Requestdefccccc (URL): SName='D:/test.txt'          Print('the page is being downloaded and saved') 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)

Learning notes: Python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.