# 連續取得多變數 # c++ cout<<"請輸入 a1 \n a2 \n a3 \n" cin>>a1,a2,a3 i=input('請輸入a1,a2,a3\n') for i in i.split(','): print(i.strip()) #input:1,2,3 #output: 1\n 2\n 3\n #文文的求婚 i=() i=input('請輸入年份') for i in i(): if (i%4==0): if (y%100!=0): print('閏年') if (y%400==0): print('閏年') else: print('平年')