mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
release configparser
This commit is contained in:
parent
2da2f124cf
commit
d9b296cee8
@ -1,9 +1,9 @@
|
||||
import pika_configparser
|
||||
import configparser
|
||||
|
||||
fd = open('test/assets/widget_config.ini', 'r')
|
||||
s = fd.read(-1)
|
||||
print(s)
|
||||
config = pika_configparser.ConfigParser()
|
||||
config = configparser.ConfigParser()
|
||||
config.read_string(s)
|
||||
print(config)
|
||||
font_color = config.get('文本控件_20030101', 'font_color')
|
||||
|
@ -1,9 +1,9 @@
|
||||
import pika_configparser
|
||||
import configparser
|
||||
|
||||
fd = open('test/assets/widget_config.ini', 'r')
|
||||
s = fd.read(-1)
|
||||
print(s)
|
||||
config = pika_configparser.ConfigParser()
|
||||
config = configparser.ConfigParser()
|
||||
config.read_string(s)
|
||||
print(config)
|
||||
font_color = config.get('文本控件_20030101', 'font_color')
|
||||
|
Loading…
x
Reference in New Issue
Block a user