数字 int:1、将字符串转换为整形a = "789"print(type(a))b = int(a)print(type(b))#将字符串转换为数字类型(设a为字符串类型)new_a = int(a)2、当前数字的二进制至少需要多少位表示-bit_lenghtnum... Read More
posted @ 2018-07-30 18:15 HHarvey Views(81) Comments(0) Diggs(0) Edit
1、执行 Python 脚本的两种方式 python解释器和终端2、简述位、字节的关系 一个字节=8位,计算机处理时以字节为单位,存储时以位为单位 3、简述 ascii、unicode、utf-­‐8、gbk 的关系 先有ASCI... Read More
posted @ 2018-07-30 17:12 HHarvey Views(205) Comments(0) Diggs(0) Edit
1、同时支持2.7与3.5文件头+#/usr/bin/u/ubv/a python# -*- coding:utf-8 -*-2、变量名要求:字母 数字 下划线,不能与数字开头,包括下划线+数字,不能使用关键字及python内置函数名。3、else不循环。4、py... Read More
posted @ 2018-07-30 17:04 HHarvey Views(156) Comments(0) Diggs(0) Edit