黑殼鐵屋
  • 關於黑殼鐵
  • 研究
    • 聰明的動物 家豬
    • 我的坂本龍馬研究
    • 我的蚵仔煎研究
    • DJ黑殼鐵 製作電子音樂
  • 我的作品
    • 我的音樂
    • 我的影片
    • 我的Scratch
    • 我的程式
  • Blog
    • Blog
    • works blog

我的程式

第一次做遊戲(更新版)

plane.exe
File Size: 639 kb
File Type: exe
下載檔案

第一次做遊戲

mac版下載
File Size: 50788 kb
File Type: zip
下載檔案

window版下載
File Size: 639 kb
File Type: exe
下載檔案

最大公因數計算←(點這裡)


倍數計算←(點這裡)​


因數計算←(點這裡)​​


質數計算←(點這裡)​


圖片
次方計算
​a=int(input("次方"))
b=int(input("次方"))
print(a**b)

次方計算


圖片
畫畫國旗
​import turtle
turtle.speed(10)
def rectangle(x,y,leng,wid,color):
        turtle.color(color)
        turtle.penup()
        turtle.goto(x,y)
        turtle.down()
        
        turtle.begin_fill()
        turtle.forward(leng)
        turtle.right(90)
        turtle.forward(wid)
        turtle.right(90)
        turtle.forward(leng)
        turtle.right(90)
        turtle.forward(wid)
        turtle.right(90)
        turtle.end_fill()
rectangle(-200,200,600,400,"red")
rectangle(-200,200,300,200,"blue")
def sun(x,y,leng,color):
        turtle.up()
        turtle.color(color)
        turtle.goto(x,y)
        turtle.setheading(345)
        turtle.down()
        turtle.begin_fill()
        counter=0
        while True:
                turtle.forward(leng)
                turtle.left(150)
                counter+=1
                if counter>=12:
                        break
        turtle.end_fill()
sun(-150,100,175,"white")
turtle.up()

turtle.color("blue")
turtle.goto(-104,100)
turtle.setheading(270)
turtle.down()
turtle.pensize(10)
turtle.circle(44)
turtle.up()

畫畫國旗
圖片
火柴人
​import turtle
#turtle.goto(0,0)        
turtle.speed(6)
turtle.circle(40,steps=16)


turtle.setheading(270)
turtle.forward(100)
turtle.penup()
turtle.goto(-50,-25)
turtle.setheading(0)
turtle.pendown()
turtle.forward(100)

turtle.penup()
turtle.goto(0,-100)

turtle.setheading(300)
turtle.pendown()
turtle.forward(100)
turtle.penup()
turtle.goto(0,-100)

turtle.setheading(600)
turtle.pendown()
turtle.forward(100)
turtle.penup()
turtle.goto(0,-100)


畫畫火材人
關於黑殼鐵
免費訂閱
研究
我的坂本龍馬
聰明的動物 家豬
我的作品
我的音樂
​
我的影片
我的Scratch
我的程式
我的Blog
© COPYRIGHT 2015. ALL RIGHTS RESERVED.
  • 關於黑殼鐵
  • 研究
    • 聰明的動物 家豬
    • 我的坂本龍馬研究
    • 我的蚵仔煎研究
    • DJ黑殼鐵 製作電子音樂
  • 我的作品
    • 我的音樂
    • 我的影片
    • 我的Scratch
    • 我的程式
  • Blog
    • Blog
    • works blog