After receiving the data in the word variable in the following code, enter the character "Q" and exit You are about to print out the data you received. If I run this code, it will output up to Q, so how do I code it to print it out without Q?
You can do it as below.
word=input() while(word!="Q") infile.write(word+"\n") word=input()
If you don't write when you enter "Q", you can do it in another way.
994 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
572 Scrap text information after the "View More" button when searching in the Yahoo! News search window
556 Who developed the "avformat-59.dll" that comes with FFmpeg?
558 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
564 PHP ssh2_scp_send fails to send files as intended
© 2024 OneMinuteCode. All rights reserved.