[关闭]
@WillireamAngel 2017-02-15T09:18:55.000000Z 字数 275 阅读 1103

Learn python the hard way

python


一、准备工作

  1. # -- coding: utf-8 --
    utf-8编码注解,置于Python脚本最上面
    备注:#的英文名称:octothorpe(八角帽),pound(英镑),hash(电话#键),mesh(网)
  2. #的作用:
    注释代码或者临时禁用
  3. 数字和数学计算:
    +plus 加号
    -minus 减号
    /slash 斜杠
    *asterisk 星号
    % percent 百分号
    < less-than 小于号
    “>” greater-than 大于号
    <= less-than-equal 小于等于号
    “>=” greater-than-equal 大于等于号
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注