Created
April 5, 2020 11:16
-
-
Save Foair/8a44da4de39df03951bd59f6dd93cb3e to your computer and use it in GitHub Desktop.
在文本中书写长字符串
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = """ | |
s | asd + | |
adf sdaf+ | |
dfasdfasdf_ | |
""" | |
s = """ | |
select *_ | |
from app+ | |
le+ | |
""" | |
new_s = s.replace('+\n', '').replace('_\n', ' ').lstrip() | |
print(new_s, len(new_s)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment