回答編集履歴
3
修正
test
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
```Python
|
2
2
|
|
3
|
-
if line[0:7]
|
3
|
+
if line[0:7] != "http://" or line[0:8] != "https://":
|
4
4
|
|
5
|
-
```って正常な値も通りますよね
|
5
|
+
```って正常な値も通りますよね。
|
6
|
+
|
7
|
+
絶対どちらかはTrueになります。
|
2
修正
test
CHANGED
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
if line[0:7] is not "http://" or line[0:8] is not "https://":
|
4
4
|
|
5
|
-
```って正常な値も通りま
|
5
|
+
```って正常な値も通りますよね
|
1
修正
test
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
```Python
|
2
2
|
|
3
|
-
is not
|
3
|
+
if line[0:7] is not "http://" or line[0:8] is not "https://":
|
4
4
|
|
5
|
-
↓
|
6
|
-
|
7
|
-
!=
|
8
|
-
|
9
|
-
```
|
5
|
+
```って正常な値も通りませんか?
|
10
|
-
|
11
|
-
[こちら](https://www.python-izm.com/tips/difference_eq_is/)を参考に
|