Home > other >  Why the program error, please? Rookie for online solutions
Why the program error, please? Rookie for online solutions

Time:09-27

Topic is how to use Python shows the English word for memory?

CodePudding user response:

Coding problem, file open to, f=open (' D:/English. TXT ', 'r', encoding="utf-8")

CodePudding user response:

Look at English. TXT coding, can see save too, also want to write in which files, r also wrong

CodePudding user response:

refer to the second floor weixin_45903952 response:
see English. TXT coding, save can see too, I also want to write in which files, use r doesn't

Ok, thanks, I go and see

CodePudding user response:

refer to the second floor weixin_45903952 response:
see English. TXT coding, save can see too, I also want to write in which files, use r doesn't

Thank you, I want to open another text save, whether to use w

CodePudding user response:

reference 1/f, ice all over the sky the wind response:
coding problem, file open to, f=open (' D:/English. TXT ', 'r', encoding="utf-8")

Thank you for me to change

CodePudding user response:

reference 4 floor weixin_45865751 response:
Quote: refer to the second floor weixin_45903952 response:
see English. TXT coding, save can see too, I also want to write, in which files use r doesn't

Thank you, I want to open another text save, whether to use w


W is rewritten, look for r + W + a +
R +, speaking, reading and writing mode
Open the file after the cursor position is located in the position of the 0
According to the cursor position to read and write
W + write read mode
Empty file
Open the file after the cursor position is located in the position of the 0
According to the cursor position to read and write
A + append mode
Don't empty the
Open the file after the cursor will automatically in the end, and cursor position affects only the read operation
Every additional position your cursor at the last

CodePudding user response:

Yeah yeah I try thank you
  • Related