回答編集履歴
2
追記
test
CHANGED
@@ -33,3 +33,27 @@
|
|
33
33
|
ss += "後書きの終わりの文章"
|
34
34
|
|
35
35
|
```
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
パフォーマンス上有利な方法。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
```python
|
44
|
+
|
45
|
+
lst = ["タイトル等の始めの文章"]
|
46
|
+
|
47
|
+
for urls,imgs,titles in zip(url,img,title):
|
48
|
+
|
49
|
+
s = 'html文' + urls.get('href') + imgs.get('src') + str(titles.find("a")) + 'html文'
|
50
|
+
|
51
|
+
lst.append(s)
|
52
|
+
|
53
|
+
lst.append("後書きの終わりの文章")
|
54
|
+
|
55
|
+
s = "\n".join(lst)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
```
|
1
追記
test
CHANGED
@@ -11,3 +11,25 @@
|
|
11
11
|
print("後書きの終わりの文章")
|
12
12
|
|
13
13
|
```
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
#### コメントを受けて
|
18
|
+
|
19
|
+
これでいいんでしょうか。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
```python
|
24
|
+
|
25
|
+
ss = "タイトル等の始めの文章\n"
|
26
|
+
|
27
|
+
for urls,imgs,titles in zip(url,img,title):
|
28
|
+
|
29
|
+
s = 'html文' + urls.get('href') + imgs.get('src') + str(titles.find("a")) + 'html文\n'
|
30
|
+
|
31
|
+
ss += s
|
32
|
+
|
33
|
+
ss += "後書きの終わりの文章"
|
34
|
+
|
35
|
+
```
|