都是很基础的
简单记录一下
Date:0303
1.Write a comment for muti-line could usethis:
$
“””sdfaf
Fasdf
Sadfg”””
2.exponentiation
100 = 10**2
$ print 10**2
>100
3.Modulo(%)
type 3 % 2
, it will return 1
, because 2 goes into 3
4.可以直接定位字符串
Col = “sadfas”
$print Col[1]
>a
5.大小写转换
lower(),upper()
$”SASFdsfa”.lower()
Asd = ”SASFdsfa”
Asd.lower()
6.非字符串转化成字符串
The str()
method turns non-strings into strings!
$print str(2)
>2