Python全栈开发学习笔记【Day1】--变量,基本的条件控制语句。
Python
编码:
ASCII 美国标准化字符集编码,只能表示英文等字符 8位 256 标识所有英文,字符,数字
Unicode 万国码可以表示各种语言 最少两个字节
中文用三个字节
utf-8 通用字符集可以表示各种语言, unicode重新编码,节省内存空间,utf-8可以解码为unicode
英文:8位
欧洲:16位
中文:24位

单行注释用#
多行注释用"""xxx"""
错误代码示例
1 #! /usr/bin/env python 2 # -*- coding:utf-8 -*- 3 num = 1 #initial variable 4 while True: 5 if num % 2 == 0 : #判断求余数 等于0为偶数跳过 6 continue 7 if num == 100 : 8 break 9 print(num) 10 num += 1 # 变量自增
posted on 2016-06-18 16:04 Jeoffreyyang 阅读(76) 评论(0) 收藏 举报
浙公网安备 33010602011771号