私信  •  关注

new_to_code

new_to_code 最近创建的主题
new_to_code 最近回复了

您好,看看您输入的1,2,3,4;5. 如果这是输入,则:

(a,k) = input().split (";") #this will sperate 1,2,3,4 to arr and 5 to k
arr = a.split(",") #it sperate 1234 and makes a list
print(arr,r)

请告诉我它是否有效