需要帮助来读取平面文件并转换为以下格式。
输入平面文件 - commands.txt
login to url as http://demo.url.net username as test@url.net and password as mytester create-the-folder with name fdemo
share-the-folder to username user2@url.net
logout
login to url as http://demo.url.net username as user2@url.net and password as mytester123 check-the-folder with name demo
logout
替换模式后的预期格式 - ['as','to','and','with]。"as" 应该替换为 "="
login url=http://demo.url.net username=test@url.net password=mytester
create-the-folder name=fdemo
share-the-folder username=user2@url.net
logout
login url=http://demo.url.net username=user2@url.net password=mytester123
check-the-folder name=demo
logout
请帮助我得到结果。
谢谢,