• windows下Python的安装,以及IDLE的使用


    
    一、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.

  • 相关阅读:
    关于生成并发唯一性流水号的解决方案
    父页面得到<iframe>
    struts2 convention配置中常见配置选项及说明
    Struts2下关于Calendar,date的一些处理
    怎样将用户名和密码保存到Cookie中?【转】
    如何调用用户控件(UserControl)的方法 .
    Struts遍历标签<s:iterator>总结 .
    在事业的开展上保持归零的心态
    这种日子最轻松,这样的人生最快乐
    诚实是人世间最珍贵的宝物,是每个人都应当坚守的伟大情操
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/6993991.html
Copyright © 2020-2023  润新知