day1 笔记
day1
变量
定义常量 大写
字符编码
ASCII 255 1bytes
GB2312
GBK
Unicode 2bytes 一个字节=8位 unicode占两个字节
utf-8 en:1bytes zh:3bytes
注释
单行# 多行''' """ 或者打印多行
用户输入
input()默认输入字符串 type() 数据类型
输入密文 import getpass password = getpass.getpass("password")
{指定参数} .format() {0}.format
格式化输出
%()
if_else
while 循环
while condition:
xxx
else:
for循环
for x in ...
else
cotinue

浙公网安备 33010602011771号