質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,5 +25,12 @@
|
|
25
25
|
# pp = pprint.PrettyPrinter(indent=10)
|
26
26
|
pp = pprint.PrettyPrinter(width=41, compact=True)
|
27
27
|
for s in strings:
|
28
|
-
pp.pprint(s)
|
28
|
+
pp.pprint(s)
|
29
|
+
|
30
|
+
>>
|
31
|
+
'arg:a, type:, default:empty, kind:1'
|
32
|
+
'arg:b, type:int, default:empty, kind:1'
|
33
|
+
'arg:c, type:, default:empty, kind:1'
|
34
|
+
'arg:d, type:, default:10, kind:1'
|
35
|
+
#(うまく項目ごと格子状に表示されない)
|
29
36
|
```
|
1
データの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
これらの文字列を、項目ごとに綺麗に表示したいです
|
2
2
|
<現在の文字列>
|
3
|
+
'arg:a, type:, default:empty, kind:1'
|
4
|
+
'arg:b, type:int, default:empty, kind:1'
|
5
|
+
'arg:c, type:, default:empty, kind:1'
|
6
|
+
'arg:d, type:, default:10, kind:1'
|
3
7
|
|
8
|
+
|
4
9
|
<こんな感じにしたい>(まだ少しずれてますが)
|
5
10
|
'arg:a, type:, default:empty, kind:1'
|
6
11
|
'arg:b, type:int, default:empty, kind:1'
|