文章分类 -  python

摘要:1bytes=8bit 1024bytes==1kb 1024kb==1mb 1024mb==1gb 1024gb==1tb 阅读全文
posted @ 2018-04-18 09:12 皈依佛皈依法皈依僧 阅读(44) 评论(0) 推荐(0)
摘要:()>not>and>or (x or y if x is true ,return x,else return y) 阅读全文
posted @ 2018-04-18 09:07 皈依佛皈依法皈依僧 阅读(54) 评论(0) 推荐(0)
摘要:username= input('请输入您的账号:') password= input('请数您的密码:') print(username,password) print(type(password)) 阅读全文
posted @ 2018-04-17 10:35 皈依佛皈依法皈依僧 阅读(58) 评论(0) 推荐(0)
摘要:1.变量是由数字字母下划线任意组合2.变量不能是数字开头 3.变量不能是python中的关键字 and as assert break class continue def del elif else except exec finally for from global if import in 阅读全文
posted @ 2018-04-17 09:29 皈依佛皈依法皈依僧 阅读(65) 评论(0) 推荐(0)
摘要:1.python2x 默认的编码是ascii码 python2 中打印汉字需要在文件顶部添加 # -*- encoding:utf-8 -*- 2.python3x 默认的编码是utf-8 3. 3.1ascii编码:8位 == 1个字节,表示一个字符 A:01000001 3.2gbk (国标) 阅读全文
posted @ 2018-04-17 09:20 皈依佛皈依法皈依僧 阅读(66) 评论(0) 推荐(0)