摘要: python2 python2默认编码ascIII 字符串编码默认ASCII编码 py2有Unicode类型,encode后才是字符型 所以要表示中文,要在开头声明,以此种编码解码到内存,而且内存上的也是此种编码,这样的话在Windows上就可能是乱码的了 eg: ! coding: utf 8 o 阅读全文
posted @ 2020-05-13 08:56 感动#心 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 输出规则 %s , 表示字符型 %d , 表示数值型 %f , 表示浮点型 % 百分号形式 format形式 阅读全文
posted @ 2020-05-13 08:54 感动#心 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 变量的作用 昵称,代指内存里某个地址中保存的内容存储程序的中间结果,方便后面的程序调用 官方介绍 :Variables are used to store information to be referenced and manipulated in a computer program. They 阅读全文
posted @ 2020-05-13 08:51 感动#心 阅读(120) 评论(0) 推荐(0) 编辑