Rats learn Python (2) __python develop "Hello world"

Source: Internet
Author: User
Tags sublime text

One: Development tools

On the web to see the use of development tools Aptana Studio, I downloaded the aptana_studio_3_setup_3.6.1.exe, in the process of installation Ah, there are various problems, and then after the installation has also appeared to open the problem. First of all, talk about the installation time problem.

(1) At the time of installation, there is a download of some plug-ins can not download the reason, this I Baidu said is due to network problems so that the delay can not download, my box content is "12029 Http://go.appcelerator.com/install_nodejs_windows.msi"

Solution, I directly Baidu has found the same bug, links such as: http://jingyan.baidu.com/article/86112f137d4d2d273697877e.html, in this tutorial has said to download a

node. js

I found the link is http://www.oschina.net/news/42148/nodejs-0-10-13-stable, you can download the inside you need, installation can solve the corresponding problem.

(2) Open and error after installation is complete,

Http://www.cnblogs.com/weiwill/p/3973278.html this inside said need 32 bit of Java environment, no way my own is 64 bit, can only install a 32 JDK, and then done. Done

                                               ,         &NB Sp                                 Two: H Ello World                                                          ,         &N Bsp                          ,         &NB Sp                          ,         &NB Sp                

(1) You need to configure the appropriate Python path after installation

Create a new Python project after configuration is complete

Continue to the next step:

Create a new Python module after creating a project

Hello is coming out. But the IDE has been quoted as "Undefined Variable:print". Very depressed feeling, found on the StackOverflow "https://stackoverflow.com/questions/29832316/ Why-is-aptana-pydev-showing-undefined-variable-errors-for-print-and-name "

(2): Just added some groups and then asked what those great gods used to develop, and then some people say "pycharm", some people say "sublime text", I have installed sublime text but I do not know how to compile this thing, and then consulted a bit, I searched the next, and finally took care of;

First Open "sublime text" in the click below:

Click Open Folder and find the Python folder click to find "Python.sublime-build" and edit the contents. Open file contents as follows

 {"cmd": ["python","- u","$file"],"File_regex":"^[]*file \ "(... *?) \ ", line ([0-9]*)","selector":"Source.python"} 

In this case, add the path of your own Python installation, and I'll add the following
{    "cmd": ["python","- u","$file"],    "  path":"d:/wuhao/python/python32",     "File_regex":"^[]*file \ "(... *?) \ ", line ([0-9]*)",    "selector":"Source.python"}

The main is to specify the path to install Python, of course, your Python environment needs to be configured, and added to the path, after the configuration is complete, restart "sublime text" is good

Write Python and press the shortcut key "ctrl+b" to run the effect as follows

(3) Run cmd under the compiler to compile

                                               ,         &N Bsp                          ,         &NB Sp     Three: summary                             &NBSP ;                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                     

"Bing not move, forage first", learn to use the basic tools, and then learn the appropriate grammar, in fact, the difference between Python and Java is still very big ah, from the definition to the grammar are different, but now does not look like the previous no breakthrough, at least can see, know what is. More learning a language is to expand their knowledge, but the main Java language to learn well, I heard that the new features of Java 8 is quite powerful ah. Haha, it is necessary time ah, time is squeezed out, nothing to do when they learn, haha, tomorrow to start, Project re-do, it takes time Ah!!! But stick to it. go,python!!!

Rats learn Python (2) __python develop "Hello world"

Related Article

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.