:::

4. print

a,b,c = 1,2,3
print(a, b, c)
print(a, b, c, sep='-') #以-分隔資料
print(a, b, c, sep='+', end='\n=')#以+分隔資料,並以=附加在結尾(且換行)
print(a+b+c)#印出三數和(6),因前行輸出不換行,故接續前行結果列印
 


:::
http%3A%2F%2Fkang.phjh.hlc.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D8%26tbsn%3D3