返回列表 發帖

變數宣告與基本輸出 (二)

  1. age,name=18,"Tony"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

  1. age, name=18, "Tony"
  2. print("我叫"+str(name)+"今年"+str(age)+"歲")
複製代碼

TOP

  1. age,First, Last=-1,"Donald", "Trump"
  2. print("我叫"+First+" "+Last+"今年"+str(age)+"歲!")
複製代碼

TOP

  1. age,name=19,"asd"
  2. print("我叫"+name+"享年"+str(age)+"歲")
複製代碼
我是眾神之王XXX  I love you
0000000000

TOP

  1. # -*- coding: utf-8 -*-
  2. """
  3. Spyder Editor

  4. This is a temporary script file.
  5. """
  6. age,name=18,"Tony"
  7. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

  1. age,name=18,"Tony"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

  1. a,n=18,"Tony"
  2. print("我叫"+n+"今年"+str(a)+"歲")
複製代碼

TOP

返回列表