摘要: 上节课作业: 1、执行python脚本的两种方式 2、阐述位、字节的关系 3、简述ascii unicode utf-8 gbk之间的关系 4、请写出"李杰"分别用utf-8和gbk编码所占的位数 5、python单行注释和多行注释分别用什么? 6、声明变量注意事项有哪些 7、如有一下变量n1=5, 阅读全文
posted @ 2018-08-15 15:13 漫语慢蜗牛 阅读(226) 评论(0) 推荐(0) 编辑
摘要: # expandtabs,断句 test="12345678\t9"v=test.expandtabs(6)print(v) #12345678 9 test="username\temail\tpassword\nlaiying\tlaiying.com\t123\nlaiying\tlaiyin 阅读全文
posted @ 2018-07-27 18:06 漫语慢蜗牛 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 上节内容回顾和补充 unicode utf8 gbkutf8 3字节gbk 2字节 inp=input(" ")inp="10"如果把字符串转换成数字 new_inp=int(inp) 补充 a.while else count=0 while count<10: print(count) coun 阅读全文
posted @ 2018-07-27 08:28 漫语慢蜗牛 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 开发语言 高级:Python Java PHP c# 低级:c 汇编 对比 PHP 类:适用于写网页 局限性 python Java 写网页及后台功能 python 执行效率低 开发效率高 java 执行效率高 开发效率低 python种类: jpython ironpython cpython * 阅读全文
posted @ 2018-07-26 11:26 漫语慢蜗牛 阅读(210) 评论(0) 推荐(0) 编辑