查看对象所有功能
摘要:1) temp = "alex" t = type(temp) print(t) 2) temp="alwx" print(dir(temp)) 3) help(type(temp)) 4) 直接点击
阅读全文
Python运算符
摘要:知识点: py2 : 9/2 =4 9/2 =4.5(导入模块) py3 : 9/2=4.5
阅读全文
Python 编码转换
摘要:知识点: 1)对于py2,7 Utf8 > Gbk Utf8解码Unicode编码Gbk py3.5 Utf8编码成Gbk 2)window上输出Utf8 > Unicode
阅读全文