name= input("請輸入你的名字:")ide
location= input("請輸入你的地址:")orm
hobby= input("請輸入你的愛好:")input
print("可愛的",name,"喜歡在",location,"進行",hobby)it
或者能夠這樣寫:io
T= "可愛的"{0},"喜歡在"{1},"進行"{2}form
name= input("請輸入你的名字:")class
location= input("請輸入你的地址:")di
hobby= input("請輸入你的愛好:")view
c=format.T(name,location,hobby)vi
print(c)
如何提取奇數偶數
請打印出1-2+3-4......-100的計算結果
for i in range(0,101,2):
print(i)
for q in range(1,100,2):
print(q)
print(q-i)