Python advanced-shared code

Source: Internet
Author: User
Someone sent it yesterday to share it! I don't even know how the fans came from, and I have a hunch that the fans will surge. In short, I learned the code while learning the code. both software was open, teaching materials were placed next to it, while learning and searching. By the way, I learned my experience. I feel that this can be continued, and I want to urge myself to learn from (la) (fen. However, we don't need to worry about the small problem of typographical layout. although there are good typographical technologies, I am not a commercial operation platform, so I am too lazy to spend time on typographical layout. Now I think it's fun to brush platforms without a blog. Digress:

Someone sent it yesterday to share it! I don't even know how the fans came from, and I have a hunch that the fans will surge. In short, I learned the code while learning the code. both software was open, teaching materials were placed next to it, while learning and searching. By the way, I learned my experience. I feel that this can be continued, and I want to urge myself to learn from (la) (fen. However, we don't need to worry about the small problem of typographical layout. although there are good typographical technologies, I am not a commercial operation platform, so I am too lazy to spend time on typographical layout. Now I think it's fun to brush platforms without a blog.


Python is also a good thing to share code. [it seems that you can share code with anyone.] for the editor, the author of the textbook says that the built-in IDLE can be used, and the notepad can also be used. I was speechless about this. okay, you won. However, the IDLE is really not really easy to use in the editor, because if you accidentally make a mistake again, you cannot erase the trace of the mistake. obsessive-compulsive disorder means you cannot endure it. For example, if you accidentally press a space, it will become like this:

Oh, by the way, forget to say, in shell, Alt + P represents previous, Alt + N represents next (n and p here are case insensitive, it seems that the entire Python does not emphasize case sensitivity, but in the R language, case sensitivity is very important ). If you are using Python in Mac/Linux, use Ctrl + P and Ctrl + N.

The teaching material didn't say how to save a module, so I simply copied the code to the txt file and renamed it. the py file seems to be feasible. the icon is directly converted to the Python icon. However, when it is opened, only a black box will appear, and it will disappear. The entire file is saved in the. py format, and the black box will disappear. I don't know if this is correct.

Every time you close the R language, you will ask if you want to save the "workspace Image". However, I don't know what it is called a "workspace Image", and Du Niang doesn't know either. Click "no" every time-I didn't really use it to calculate anything, but I just tried different codes for teaching materials. When the Python shell is disabled, nothing is prompted.

Python also has various software packages, which were previously thought to be available only with open-source software such as R. The package index is called PyPI, and the author also marks the read as pie-pie, so I have been reading it for a long time. why is it so uncomfortable? Or zookeeper? Or a glance? It cannot be changed to 6.

It is said that the format of the annotation code is triple quotation marks, such as: ""……" "", Written #...... # Yes. Visual testing I used for data analysis won't publish shared code, and I don't need to write comments. Annotations can be written in Chinese and placed on the code.

However, when a module is running, the system always prompts "not found" and does not know why. Is there a read path problem? Ask for help.

By the way, I found that Excel is an trump card tool for data analysis, and VBA is omnipotent. the speed of basic data analysis in Excel is much faster than that in SPSS ~

The above is the Python advanced-shared code content. For more information, see The PHP Chinese network (www.php1.cn )!

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.