返回列表 發帖

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

  1. age,name=18,"Tony"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

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

TOP

  1. age,name=12,"李穎俊"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

  1. # -*- coding: utf-8 -*-

  2. age,name=12,"loren"
  3. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

  1. age,name=10,"陳頡鴻"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼
陳頡鴻

TOP

  1. age,name=14,"陳沛頤"
  2. print("我叫"+name+"今年"+str(age)+"歲")
複製代碼

TOP

  1. age,name=15,"黃紹恩"

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

TOP

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

TOP

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

TOP

  1. age,name=15,"傅品翰"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

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

TOP

  1. age,name=14,"傅英哲"
  2. print("我叫"+name+")今年"+str(age)+"歲!")
複製代碼

TOP

  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Sat Feb  1 11:19:50 2020

  4. @author: student
  5. """
  6. age,name=11,"鍾金恩"
  7. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

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

TOP

  1. print("100"+"200")
  2. print(100,"python",200,sep="~",end="...\n")
  3. age=13
  4. print("我叫"+"林依玟"+"今年"+"13"+"歲")
複製代碼

TOP

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

  4. This is a temporary script file.
  5. """
  6. age,name=15,"kenny"
  7. print("我今年"+str(age)+"歲"+"我的名字是"+name)
複製代碼

TOP

  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Sat Feb  1 11:19:50 2020

  4. @author: student
  5. """
  6. age,name=11,"鍾金恩"
  7. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

返回列表