Board logo

標題: 變數宣告與基本輸出 (一) [打印本頁]

作者: 陳品肇    時間: 2020-2-1 09:09     標題: 變數宣告與基本輸出 (一)

[attach]8336[/attach]
  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 張鈞堯    時間: 2020-2-1 10:58

  1. #12345
  2. "123456"
  3. """
  4. 123456
  5. """
  6. a=123
  7. b=456
  8. c="★"
  9. print(a,"HI",b,sep="★",end="?\n")
  10. print(str(a)+"abc"+str(b)+c)
  11. print(1,2,3,4,5,6,7,8,9,10,sep="+",end="=55")
複製代碼

作者: 李穎俊    時間: 2020-2-1 10:58

  1. x=123
  2. y=456
  3. print(x,"python",y)
  4. print(x,"python",y,sep="~")
  5. print(x,"python",y,sep="~",end="!!!\n")
  6. print(str(x)+"~python~"+str(y)+"!!!")
複製代碼

作者: 陳頡鴻    時間: 2020-2-1 10:58

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b)
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(a,"python",b,sep="~",end="!!!\n")
複製代碼

作者: 曾柏忻    時間: 2020-2-1 10:58

  1. a=123
  2. b=456
  3. print(a,"python",b,)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(a,"python",b,sep="~",end="!!!")
複製代碼

作者: 陳沛頤    時間: 2020-2-1 10:58

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 黃柏叡    時間: 2020-2-1 10:58

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

  4. This is a temporary script file.
  5. """

  6. print("hello world")

  7. a=120
  8. b=69

  9. print(a,"apple",b,)

  10. print (a,"kenny",b,sep="-",end="$")
複製代碼

作者: 潘堉恩    時間: 2020-2-1 10:59

  1. a=100
  2. b=20
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 黃紹綸    時間: 2020-2-1 11:01

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

  2. a=123
  3. b=456
  4. print(a,"python",b)
  5. print(a,"python",b,sep="~")
  6. print(a,"python",b,sep="~",end="!!!\n")
  7. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 許雅棟    時間: 2020-2-1 11:02

  1. # -*- coding: utf-8 -*-
  2. a=123
  3. b=456
  4. print(a,"python",b)
  5. print(a,"python",b,sep="~")
  6. print(a,"python",b,sep="~",end="!!!\n")
  7. print(a,"python",b,sep="~",end="!!!")
複製代碼

作者: 傅品翰    時間: 2020-2-1 11:03

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 曾顗文    時間: 2020-2-1 11:03

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")     
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 黃紹恩    時間: 2020-2-1 11:04

  1. a = 123

  2. b = 456

  3. c ="python"

  4. print("helloWorld")

  5. print(a,c,b)

  6. print(a,c,b,sep='~')

  7. print(a,c,b,sep='~',end="!!!\n")

  8.      
複製代碼

作者: 黃柏叡    時間: 2020-2-1 11:04

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

  4. This is a temporary script file.
  5. """

  6. print("hello world")
  7. print(120,"apple",69)
  8. a=120
  9. b=69
  10. print(a,"apple",b,)
  11. print(a,"apple",b,sep="=")
  12. print (a,"kenny",b,sep="-",end="$")
複製代碼

作者: 林依玟    時間: 2020-2-1 11:05

  1. print("100"+"200")
  2. print(100,"python",200,sep="~",end="...\n")
複製代碼

作者: 傅英哲    時間: 2020-2-1 11:06

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 林奇陞    時間: 2020-2-1 11:30

  1. print(100<"python",60)
  2. print(str(100)+"python"+str(60))
  3. print(100,"python",sep="&")
  4. print(100,60,sep="&",end="")
複製代碼

作者: 許雅棟    時間: 2020-2-1 11:50

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



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





歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/) Powered by Discuz! 7.2