在Python中,可以使用print()函數將int型數據打印出來。例如:
num = 10 print(num)
輸出結果為:
10
可以將多個int型數據一起打印,用逗號分隔開。例如:
num1 = 10 num2 = 20 print(num1, num2)
10 20