摘要: >>> s = 'RUNOOB' >>> repr(s) "'RUNOOB'" >>> dict = {'runoob': 'runoob.com', 'google': 'google.com'}; >>> repr(dict) "{'google': 'google.com', 'runoob' 阅读全文
posted @ 2022-08-14 23:22 ty1539 阅读(39) 评论(0) 推荐(0) 编辑
摘要: import itertools a = range(1, 5) y = list(itertools.permutations(a, 3)) print(y) 输出: [(1, 2, 3), (1, 2, 4), (1, 3, 2), (1, 3, 4), (1, 4, 2), (1, 4, 3) 阅读全文
posted @ 2022-08-14 23:14 ty1539 阅读(258) 评论(0) 推荐(0) 编辑