import turtle
# 變數:用乙個盒子來裝資料,值會變的盒子
# 變數名命名規則:
# 1。變數名是由英文本母,數字,下劃線組成的
# 2。不能有標點符號,數字不能作為開頭
# a________ asd123 _123 abc.def 6add 你好
# 法無禁止即自由 不建議用中文 中文效率會低 github 預設英文
# 變數名命名技巧:見名知義
# 1.駝峰命名法: mynameisz
# 2.下劃線命名法:my_name_is
long
=100
# 把右邊的數值通過等於號賦值給左邊
jiaodu =
1234
turtle.speed(10)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.forward(
long
)turtle.left(jiaodu)
turtle.done(
)
a =
5b =
3# 數**算符號 + - * /
print
(a+b)
print(5
-3)print(5
*3)print(5
/3)# ((5+3)*7)
print(5
**10000
)
HTML畫六邊形
1.方法1 上下兩個三角,中間乙個長方形 方法2 t 25deg,transparent 36px,rgb 76,184,233 0 bottom left background size 50 50 background repeat no repeat position absolute lef...
css畫正六邊形
說下兩種css 製作正六邊形的方法。先看一下結果 在之前要先了解一下正六邊形內角和邊的關係,正六邊形的每個內角是60deg,如圖 3其實是根號3 方法一 原理把正六邊形分成三部分,左中右分別是 before部分,div部分,after部分,如圖 before三角形部分是div的before偽元素,a...
Python 用 OpenCV 畫橢圓 5
利用 opencv 自帶的ellipse 函式畫橢圓並顯示,其函式宣告如下 cv2.ellipse img,center,axes,rotateangle,startangle,endangle,color thickness linetype shift shift 座標點小數點位數 畫橢圓的完整...