Python advanced--shared code

Source: Internet
Author: User
Off Topic:

Yesterday sent out of incredibly someone to share! And I don't even know how to come to fans, the feeling of fans rose. In short, I was learning while the code, two software are open, teaching materials in the side, while learning while searching, by the way the code out of learning experience. Feel that this can continue to go on, as the urge oneself (LA) Learn (FEN). However, the layout of this small problem should not be tangled, although there is a good typesetting technology, but I am not a commercial operating platform, too lazy to spend time on typesetting such things. Now feel that no blog Brush brush platform is also very fun.


Python is also a good thing to share code with "as if all of you can share the code." For the editor's question, the author of the textbook said that the built-in idle can be, Notepad can be ah. I have no answer to that, OK, you won. However, there is really no real editor to use, because accidentally lost the wrong to repeat the words can not erase the mark of the wrong, obsessive-compulsive disorder means not endure. For example, accidentally hit a space, it became this:

Oh, yes, I forgot to say, inside the shell, alt+p means that previous,alt+n represents next (where N and p are not case-insensitive, it seems that the whole python does not have an emphasis on capitalization, but the case in R is a very important thing). Use Ctrl+p and CTRL + N if you are using Python from Mac/linux.

The textbook did not say how to save a module, so I opened the hole in the code directly to the TXT document, and then renamed A. py file, it seems to be possible, the icon directly into the Python icon, but only a black box will appear when opened, Flash a little. The entire save file is also. py format, but also flash the black box is gone, do not know whether this is right.

Every time you close the R language, you will be asked if you want to save the workspace image, but I don't know what "workspace image" is. Every time to point no--anyway, I did not really use it to calculate what, is to find the textbook to try different code to play it. The Python shell does not have any hints when it is closed.

Python also has a variety of software packages, have always thought that only r this open-source software, lie. Package index called PyPI, the author also marked a read do pie-pie, so I read for a long time how all uncomfortable: skim? Or the Protium protium? Or a glimpse? It can't be more than 6.

It is said that the format of the comment code is Sanchong quotation marks, such as: "" "..." ", written as # ... #也是可以的. Visual I used to do data analysis do not publish shared code what, do not write comments. Comments can be written in Chinese, put in the code above it.

However, there is a problem with the module running, always prompt "not found" also do not know what is the problem of the read path? Help Boingonium hindering.

By the right, I found Excel is a data analysis of the Trump tool, VBA is almost omnipotent, measured Excel to do basic data analysis faster than SPSS ~

The above is the Python advanced-share the content of the code, more relevant content please pay attention to topic.alibabacloud.com (www.php.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.