摘要: 1.长整型 python3中没有长整型的概念; python2中, num=2L type(num) => ‘long’ x=1-2j print(x.real) #取实部 print(x.imag) #取虚部 1.0 -2.0 #1. strip, lstrip, rstrip #作用于首尾两端, 阅读全文
posted @ 2018-07-27 08:18 昕妤 阅读(197) 评论(0) 推荐(0) 编辑
摘要: python基础(补充) y=1 y=x y=x=a=b=c=1 (id相同) m=1 n=2 x=m m=n n=x m=1 n=2 m, n=n, m salaries = [11,12,13,14,15] mon1_sal=salaries [0] …… mon5_sal=salaries [ 阅读全文
posted @ 2018-07-27 08:14 昕妤 阅读(189) 评论(0) 推荐(0) 编辑