Day11 作业

1.执行Python脚本的两种方式

windows:

python 解释器

python 1.py

linux:

./1.py

2.简述位、字节的关系

                  8位一个字节

3.简述ascii 、unicode、uft-8、gbk的关系

                  美国、      国际组织、  是uni的变种、中国

4.请写出“李杰”分别用utf-8和gbk编码所占的位数

                            utf-8:6

                            gbk:4

                 a = ”李杰“

                 Python3:

                         len(a)   # 2

                         for item in a:

                                 print(item)

                  Python2:

                          len(a)   #6

                          for item in a:

                                 print(item)

5.Python 单行注释和多行注释分别用什么?

猜你喜欢

转载自www.cnblogs.com/zjb0122/p/9074411.html