关于input()

明天要笔试拼多多:编程语言限制,本次考试中无编程语言限制 在线作答编程,需要自己处理输入输出,建议你进行在线oj输入输出练习 

input():

  由于在python3中的输入全是str,所以一般读取数字会用:

  nums = list( map( int, input().split( ' ' ) ) )                     #如果不记得map后参数的位置, 可以直接记, map int   连读像 mapping 

split( str = ' ' , num=string.count(str)) :  

  分隔符默认为空格,还是一般写一下吧

原文地址:https://www.cnblogs.com/ChevisZhang/p/13027481.html