Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I try to write in .txt file some things from my database,but i have problems.
- I use this:
- f.write('{0} {1} {2}{3}{2}'.format('#define',response[1],'"',response[2]))
- I get this in my .txt file:
- http://prntscr.com/kc2mp4
- #define need to be on start every line,but see how it's in picture..
- If I do this: (I'm add \n on end
- f.write('{0} {1} {2}{3}{2}{4}'.format('#define',response[1],'"',response[2],'\n'))
- I will get this
- http://prntscr.com/kc2ned
- Now #define is on start every line,but all need to be in one line..(Example: http://prntscr.com/kc2nli This in red need to be one line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement