一、Python的下载安装
(1)python的windows安装包可以从https://www.python.org 网址中下载,可以下载3.4版本的或者2.7版本的。
(2)下载后直接运行即可。然后将python的安装目录比如:"D:Program FilesPython36,添加到系统属性->环境变量Path中去。
(3)打开cmd,并且输入python即可以看到对应的python版本号信息等。
看python的windows版本安装简单吧,如果是linux类的版本则它们一般都自带有python,但一般版本偏低。
二、具有魔咒的"hello world"
(1)新建一个txt文件,并且保存后缀为py
(2)选中文件并且点击右键,这时在显示的列表中有一项"Edit with IDLE" 点击打开。
(3)IDLE是python中自带的一个小巧的python IDE。
(4)输入print('hello world') 或者print 'hello world'
(5)点击F5 或者在IDLE中点击run即可以看到对应的输出信息。
好啦,这就是Python学习的第一步。
关于IDLE,它只提供最基本的功能。但是它的启动以及执行时非常方便的。如果想使用其他的IDE可以使用PyCharm等工具。
issue 1:
>>> print 3*5
File "<stdin>", line 1
print 3*5
^
need change to
>>> print (3*5)
15
>>>
ref
http://www.cnblogs.com/dsky/archive/2012/06/04/2535397.html
http://blog.csdn.net/cjccjccjccjc/article/details/45131307
http://www.cnblogs.com/hongten/p/hongten_python_install.html
http://www.cnblogs.com/windinsky/archive/2012/09/20/2695520.html
pycharm 安装在windows 32 bit 报错 :
fix:
was receiving error as "could not find main class com/intellij/idea/main" when trying to launch JetBrains Pycharm tool.
Observation :- While checking this issue I tried below steps
1. Uninstalled Pycharm tool and re-installed same using MSI installer.
2. Checked Java( JDK) version which was 1.6 and also JRE version as 1.6 on my computer.
3. Downloaded latest version of Java( JDK & JRE) -1.8 and installed same to different location in C drive.
4. Launched JetBrains Pycharm tool again and now it is working fine as expected.
Happy to help !
Hopefully this would work for people who are facing similar kind of issues. Thanks and let me know if you have any questions.