zoukankan      html  css  js  c++  java
  • python-1

    了解python擅长的领域

    WEB开发

    网络编程

    科学计算

    GUI图形开发

    1.os,linux系统下  python文件为可执行文件  但是前提是   要在文件最顶部声明执行环境

    2. 开发软件   推荐使用  pycharm

      配置默认的模版: setting->editor->file and code templates

    3.变量字符编码

      字符编码的发展

        ASCLL  255      1Bytes

          -->1980  gb2312  7000+

          -->2000  GBK1.0  20000+

          -->Unicode  2Bytes

          -->utf-8  en:1Bytes   ch:3Bytes

      python 2.X不支持中文  需要声明编码格式

      

    4.用户输入

      input()方法   等价与  2.x 的raw_input()

    *变量输出格式

    5.if else 流程判断

      格式:

        if 条件:

          print()

        else:

          print()

    ******注意强制缩进

        if 条件:

          print()

        elif 条件:

          print()

        else:

          print()

    6.while循环

    7.for循环

      格式:    

        for i in range(10):

          print()

    *****break  跳出

      continue结束当次

  • 相关阅读:
    Ruby(1):入门
    html 制作静态页面新知识
    mysql 可视化界面操作指令
    html 基础
    Eclipse导入Java工程导入错误
    shell 25个常用命令
    java JDBC
    java 8新特性 instant
    git
    spring mvc 注解详解
  • 原文地址:https://www.cnblogs.com/lx0715/p/9206734.html
Copyright © 2011-2022 走看看