问题描述
Hai我是python编程的初学者
我想使用
读写记事本文件
python中的类和方法.
有人可以帮我吗?
任何帮助将不胜感激.
我已将记事本文件内容粘贴到下面以进行处理
由于我找不到任何附件选项,请记下
验证.
文件名:FileToRW.txt
记事本文件的内容
-------------------
红色的;黑色的;绿色;白色的;粉色的;橙色;
R100; B100; G100; W100; P100; O100;
R200; B200 G200 W200 P200 O200
R300; B300; G300; W300; P300; O300;
R400; B400; G400; W400; P400; O400;
"RUN 100"
执行颜色代码"
"RESULT 1100"
Hai I am beginner in python programming
I want to read and write a notepad file using
a class and method in python.
Can anyone help me to do so ?
Any help will be appreciated.
I have pasted the notepad file content to be processed below
since I don''t find any attachment option, please note down for
the verification.
filename : FileToRW.txt
Content of Notepad File
-------------------
RED; BLACK; GREEN; WHITE; PINK; ORANGE;
R100; B100; G100; W100; P100; O100;
R200; B200 G200 W200 P200 O200
R300; B300; G300; W300; P300; O300;
R400; B400; G400; W400; P400; O400;
"RUN 100"
"EXECUTE COLOR CODES"
"RESULT 1100"
推荐答案
这篇关于使用Python读写记事本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!