回答編集履歴

1

追記

2020/05/12 02:40

投稿

quickquip
quickquip

スコア11038

test CHANGED
@@ -24,4 +24,26 @@
24
24
 
25
25
 
26
26
 
27
+ [https://docs.python.org/ja/3/library/configparser.html#configparser.ConfigParser.optionxform](https://docs.python.org/ja/3/library/configparser.html#configparser.ConfigParser.optionxform)
28
+
29
+
30
+
31
+ ```plain
32
+
33
+ >>> custom.optionxform = lambda option: option
34
+
35
+ >>> custom.read_string(config)
36
+
37
+ >>> list(custom['Section1'].keys())
38
+
39
+ ['Key']
40
+
41
+ >>> list(custom['Section2'].keys())
42
+
43
+ ['AnotherKey']
44
+
45
+ ```
46
+
47
+
48
+
27
49
  あたりも参考に。