zoukankan      html  css  js  c++  java
  • 第一天学习:python的安装及helloworld

    1、linux 默认安装python,centos6.5默认python2.6,centos7默认python2.7
    源码包安装:
    # wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
    # tar -xvf Python-2.7.10.tgz
    # cd Python-2.7.10
    # ./configure
    # make
    # make install
    # python
    Python 2.7.10 (default, Oct 15 2017, 05:50:03) 
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    

      

    2、mac 默认安装python2.7
     
    3、windows:在官网上:https://www.python.org/downloads/
    下载python安装包,然后配置环境变量,
    在系统环境变量中Path的值中加入 :D:Python27;D:Python27Scripts;
    验证:
    D:>python
    Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on wi
    n32
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    

      

    4、学习print:print ‘helloworld’
    >>> print 'helloworld'
    helloworld
    >>>
    

      

  • 相关阅读:
    页面跳转
    vue项目流程
    前端框架发展史
    webpack构建react项目和发布流程
    React工作原理
    React项目中的registerServiceWorker作用?
    学习react总结
    浏览器的渲染:过程与原理
    浮动相关
    块级元素与内嵌元素
  • 原文地址:https://www.cnblogs.com/yshan13/p/7678532.html
Copyright © 2011-2022 走看看