![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
yayh2011
这个作者很懒,什么都没留下…
展开
-
Python知识点总结
一、基本 1. 读数 s=raw_input() s= sys.stdin.readline().strip( ) str.strip([sub]) #去掉字符串开头和结尾的空格,也可加参数 2. 数学运算 max(a1,a2) min()sum() abs() round() #四舍五入取整 pow(2,3) #2的3次方 pow(2,3,5)#2**3%原创 2017-04-28 10:11:00 · 359 阅读 · 0 评论 -
Python实现全排列
def permutation(x): if len(x) == 0 or len(x) == 1: return [x] result = [] for i in x: temp = x[:] print temp temp.remove(i) tempx = permutation(temp转载 2017-04-28 14:48:39 · 459 阅读 · 0 评论