import sys import re str = sys.stdin.readline(); #使用strip()方法去掉字符串前后的换行符 #print('I am',str.strip('\n'),'and I am studying Python in Nowcoder!') #使用replace()方法将换行符替换为空字符串 #print('I am',str.replace('\n',''),'and I am studying Python in Nowcoder!') #使用正则表达式re.sub()方法将字符串中的换行符替换为空字符串 print('I am',re...