introduction Un mémorandum d'entrée standard. Celui ci est mieux! S'il vous plaît laissez-moi savoir si vous en avez.
Inputs
input.py
S = input()
N = int(input())
console
string
9999
input.py
S1, S2 = input().split()
S = input().split()
N1, N2 = map(int, input().split())
N = list(map(int, input().split())
Sunny Rainy
Sunny Rainy Cloudy => ["Sunny", "Rainy", "Cloudy"]
9999 8888
7777 6666 5555 => [7777, 6666, 5555]
input.py
N = int(input())
S = [input() for _ in range(N)]
N = [int(input()) for _ in range(N)]
3 ... N(Nombre de lignes)
aa
bc
io => ["aa", "bc", "io"]
3
2
9 => [3, 2, 9]
input.py
N = int(input())
S = [input().split() for _ in range(N)]
3
aa bc 82 00 2w
oe jj ed 2s pw
12 de co 99 jd
=> [['aa', 'bc', '82', '00', '2w'], ['oe', 'jj', 'ed', '2s', 'pw'], ['12', 'de', 'co', '99', 'jd']]
input.py
N = int(input())
S = [[int(i) for i in input().strip()] for _ in range(N)]
3
123456
789012
345678
=> [[1, 2, 3, 4, 5, 6], [7, 8, 9, 0, 1, 2], [3, 4, 5, 6, 7, 8]]
Recommended Posts