1. 单行获取
import sys
num = sys.stdin.readline().strip("
")
2. 多行获取
import sys
num = sys.stdin.readline().strip("
")
while num!="":
num = sys.stdin.readline().strip("
")
import sys
num = sys.stdin.readline().strip("
")
import sys
num = sys.stdin.readline().strip("
")
while num!="":
num = sys.stdin.readline().strip("
")