質問編集履歴

1

改善

2019/01/16 13:28

投稿

Tubasa1995
Tubasa1995

スコア83

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  何故ですか.
8
8
 
9
-
9
+ とくに51で割って余りが1の数字が消えないのはなぜですか.
10
10
 
11
11
  ```
12
12
 
@@ -18,14 +18,6 @@
18
18
 
19
19
  num_list = list(range(1,7202))
20
20
 
21
- num_list1 =[]
22
-
23
- remove_list1 = [x for x in num_list if x % 51 != 0]
24
-
25
- remove_list2 = [x for x in num_list1 if x % 51 != 1 ]
21
+ remove_list = [x for x in num_list if x % 51 != 0 & x % 51 != 1]
26
-
27
-
28
-
29
- np.savetxt('test_out.csv', remove_list2, delimiter=',')
30
22
 
31
23
  ```