最近學Python,需要整一個順手的IDE。 朋友力薦Atom , 於是下載了一個1.53版本的,這玩意兒是GitHub搞的,應該是開源的。
安裝後又裝了兩個插件,一個是縮進的,一個是 運行程序的
首先打開setting
然後搜索 autocomplete-python 這個是縮進用的,安裝
再搜索 script 這個是運行Python用的
就是下面兩貨
然後就可以寫代碼整python了整個例子
import turtle window = turtle.Screen() babbage = turtle.Turtle(); babbage.color("green", "yellow") babbage.left(90) babbage.forward(100) babbage.right(90) babbage.begin_fill() babbage.circle(10) babbage.end_fill() #babbage.color("yellow", "yellow") #babbage.begin_fill() #babbage.circle(10) #babbage.end_fill() for i in range(1, 24): babbage.color("red", "red") babbage.left(15) babbage.forward(50) babbage.left(157) babbage.forward(50) window.exitonclick()
結果
搞定 。