まぁ、作業ログみたいなもんです
>>> L = [1, 2, 1, 3, 2, 4, 5] >>> set(L) {1, 2, 3, 4, 5} >>> L = list(set(L)) # Remove duplicates >>> L [1, 2, 3, 4, 5]
No comments:
Post a Comment