質問編集履歴
1
補足情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,4 +31,11 @@
|
|
31
31
|
print(txt[:list_new])
|
32
32
|
|
33
33
|
```
|
34
|
+
補足、下記の方法でしたら、複数ではないですが
|
35
|
+
特定の文字以降削除できます。
|
36
|
+
```
|
37
|
+
txt = 'abc-def'
|
38
|
+
pos = txt.find('-')
|
39
|
+
print(txt[:pos])
|
40
|
+
```
|
34
41
|
|