输入/输出
库:sys
读入一行2个int
a, b = map(int, input().split())
input()读入一整行为string,split()分割,map()将值转换为特定格式。
清除输出的缓存
sys.stdout.flush()
语言原因,会将print输出默认保存在缓存中,需要手动清除。
库:sys
a, b = map(int, input().split())
input()读入一整行为string,split()分割,map()将值转换为特定格式。
sys.stdout.flush()
语言原因,会将print输出默认保存在缓存中,需要手动清除。