python学习(二)

python 3.2.2

1. 第一个程序

    print("Hello Word!") 写入文件ex1.py 在命令行终端运行python ex1.py

2. 注释和#号

   #号:中文为井号,英文为octothorpe 或者 pound character。

3. 数字和数学计算

    + plus 加号

    -  minus 减号

    /  slash 斜杠

    * asterisk 星号

    % persent 百分号

    < less-than 小于号

    > greater-than 大于号

    <= less-than-equal 小于等于号

    >= greater-than-equal 大于等于号

4. 变量和命名

5. 更多的变量和打印

原文地址:https://www.cnblogs.com/zhaozhilu/p/2350795.html