python
阳十三
不要把平台当做能力
展开
-
python if语法
if测试 基本列子 123 if(1): print("true")#true 多路分支 12345 if(1): print("true")else: print("false")#true 12 choice = "a"print({"a":"1",原创 2017-09-13 09:48:21 · 423 阅读 · 0 评论 -
python的类型和运算
数字类型与运算 123456789101112131415161718192021 L = [1,2]L.append(L)print(L) # [1, 2, [...]]a = 123 * 321print(a) #39483a = len(str(2 ** 10000)) #输出长度print(a) #3011import mathprint原创 2017-09-13 09:49:57 · 260 阅读 · 0 评论