I feel my recently gained knowledge is still not sufficient when it comes to string processing. Please help me solve the below problem statement: (Please note:This is the simpler version of my requirement)
因此,我有一份内容如下的文件:
day=monday,tuesday,wednesday
month=jan,feb,march,april
holiday=thanksgiving,chirstmas
我的字典应当能够读到文档并处理读写法,这样一来,清单中有三个变量,如下:
day --> [ monday , tuesday , wednesday ]
month --> [ jan , feb , march , april ]
holiday --> [ thanksgiving , christmas ]
Please note: As per my requirement, the format for contents in myoption file should be simple. Hence You are free to modify the format of myoption file without changing the content - This is to give you some flexibility.
感谢: