yaoweilei's recent timeline updates
yaoweilei

yaoweilei

V2EX member #80261, joined on 2014-11-05 17:33:18 +08:00
89 S 8 B
yaoweilei's recent replies
Sep 30, 2022
Replied to a topic by wildlynx Google translate.google.cn 似乎准备要关闭了
fanyi.baidu.com 不香吗?
戴尔的品控,家用被坑,公司也被坑 ing 。。。
py 全局辅助,go 中前期法师,java 后期 dps,
仿佛打开了 VSCODE,香
Jan 7, 2021
Replied to a topic by zhuzhuaini Python Python 读取 TXT 如何按照关键行提取内容
[root@localhost tmp]# cat ini.ini
[test1]
key1=value
key2

[test2]
key3=value3
key4
[root@localhost tmp]# cat test.py
import ConfigParser
cf = ConfigParser.ConfigParser(allow_no_value=True)
cf.read("./ini.ini")
print(cf.sections())
print(cf.options("test1"))
print(cf.items("test1"))
[root@localhost tmp]# python test.py
['test1', 'test2']
['key1', 'key2']
[('key1', 'value'), ('key2', None)]

17 楼方案的 py2.7 的实践结果,py3 里面的改名叫 configparser 了,换一下应该就可。
15 款 无恙
go="A" if x==1 else "B" if x==2 else "C"
支持 IINA
Feb 6, 2020
Replied to a topic by hhyvs111 生活 如何劝说父亲不要没事外出?
找一个当年非典治好的人的现状的视频看看?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3223 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 14:10 · PVG 22:10 · LAX 07:10 · JFK 10:10
♥ Do have faith in what you're doing.