Turtle graphics is a popular way for introducing programming to kids.  การแปล - Turtle graphics is a popular way for introducing programming to kids.  ไทย วิธีการพูด

Turtle graphics is a popular way fo

Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an import turtle, give it the command turtle.forward(15), and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the command turtle.right(25), and it rotates in-place 25 degrees clockwise.

By combining together these and similar commands, intricate shapes and pictures can easily be drawn.

The turtle module is an extended reimplementation of the same-named module from the Python standard distribution up to version Python 2.5.

It tries to keep the merits of the old turtle module and to be (nearly) 100% compatible with it. This means in the first place to enable the learning programmer to use all the commands, classes and methods interactively when using the module from within IDLE run with the -n switch.

The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.

The object-oriented interface uses essentially two+two classes:

The TurtleScreen class defines graphics windows as a playground for the drawing turtles. Its constructor needs a Tkinter.Canvas or a ScrolledCanvas as argument. It should be used when turtle is used as part of some application.

The function Screen() returns a singleton object of a TurtleScreen subclass. This function should be used when turtle is used as a standalone tool for doing graphics. As a singleton object, inheriting from its class is not possible.

All methods of TurtleScreen/Screen also exist as functions, i.e. as part of the procedure-oriented interface.

RawTurtle (alias: RawPen) defines Turtle objects which draw on a TurtleScreen. Its constructor needs a Canvas, ScrolledCanvas or TurtleScreen as argument, so the RawTurtle objects know where to draw.

Derived from RawTurtle is the subclass Turtle (alias: Pen), which draws on “the” Screen - instance which is automatically created, if not already present.

All methods of RawTurtle/Turtle also exist as functions, i.e. part of the procedure-oriented interface.

The procedural interface provides functions which are derived from the methods of the classes Screen and Turtle. They have the same names as the corresponding methods. A screen object is automatically created whenever a function derived from a Screen method is called. An (unnamed) turtle object is automatically created whenever any of the functions derived from a Turtle method is called.
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an import turtle, give it the command turtle.forward(15), and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the command turtle.right(25), and it rotates in-place 25 degrees clockwise.

By combining together these and similar commands, intricate shapes and pictures can easily be drawn.

The turtle module is an extended reimplementation of the same-named module from the Python standard distribution up to version Python 2.5.

It tries to keep the merits of the old turtle module and to be (nearly) 100% compatible with it. This means in the first place to enable the learning programmer to use all the commands, classes and methods interactively when using the module from within IDLE run with the -n switch.

The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.

The object-oriented interface uses essentially two+two classes:

The TurtleScreen class defines graphics windows as a playground for the drawing turtles. Its constructor needs a Tkinter.Canvas or a ScrolledCanvas as argument. It should be used when turtle is used as part of some application.

The function Screen() returns a singleton object of a TurtleScreen subclass. This function should be used when turtle is used as a standalone tool for doing graphics. As a singleton object, inheriting from its class is not possible.

All methods of TurtleScreen/Screen also exist as functions, i.e. as part of the procedure-oriented interface.

RawTurtle (alias: RawPen) defines Turtle objects which draw on a TurtleScreen. Its constructor needs a Canvas, ScrolledCanvas or TurtleScreen as argument, so the RawTurtle objects know where to draw.

Derived from RawTurtle is the subclass Turtle (alias: Pen), which draws on “the” Screen - instance which is automatically created, if not already present.

All methods of RawTurtle/Turtle also exist as functions, i.e. part of the procedure-oriented interface.

The procedural interface provides functions which are derived from the methods of the classes Screen and Turtle. They have the same names as the corresponding methods. A screen object is automatically created whenever a function derived from a Screen method is called. An (unnamed) turtle object is automatically created whenever any of the functions derived from a Turtle method is called.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
กราฟิกเต่าเป็นวิธีที่นิยมสำหรับการแนะนำการเขียนโปรแกรมเพื่อเด็ก มันเป็นส่วนหนึ่งของเดิมการเขียนโปรแกรมภาษา Logo พัฒนาโดยเก่ง Feurzig และ Papert มัวร์ในปี 1966. ลองนึกภาพหุ่นยนต์เต่าเริ่มต้นที่ (0, 0) ในระนาบ xy หลังจากที่เต่านำเข้าให้มัน turtle.forward คำสั่ง (15) และจะย้าย (บนหน้าจอ!) 15 พิกเซลในทิศทางที่มันจะหัน, การวาดเส้นขณะที่มันเคลื่อน ให้มัน turtle.right คำสั่ง (25) และมันหมุนในสถานที่ 25 องศาตามเข็มนาฬิกา. โดยการรวมเข้าด้วยกันคำสั่งเหล่านี้และคล้ายรูปร่างซับซ้อนและภาพที่สามารถจะดึง. โมดูลเต่าเป็น reimplementation ขยายเดียวกันชื่อ โมดูลจากการกระจายหลามมาตรฐานขึ้นอยู่กับงูใหญ่รุ่น 2.5. มันพยายามที่จะรักษาประโยชน์ของโมดูลเต่าเก่าและจะเป็น (เกือบ) 100% เข้ากันได้กับมัน ซึ่งหมายความว่าในครั้งแรกที่จะเปิดใช้งานโปรแกรมการเรียนรู้ที่จะใช้คำสั่งทั้งหมดชั้นเรียนและวิธีการโต้ตอบเมื่อใช้โมดูลการทำงานจากภายใน IDLE ด้วยสวิตช์ -n. โมดูลเต่ามีพื้นฐานเต่ากราฟิกทั้งในเชิงวัตถุและขั้นตอน วิธีการเชิง เพราะมันใช้ Tkinter สำหรับกราฟิกพื้นฐานก็ต้องเป็นรุ่นที่ติดตั้ง Python ด้วยการสนับสนุน Tk. อินเตอร์เฟซเชิงวัตถุใช้หลักสอง + สองชั้น: ชั้น TurtleScreen กำหนดหน้าต่างกราฟิกเป็นสนามเด็กเล่นสำหรับเต่าวาดภาพ คอนสตรัคมันต้องการ Tkinter.Canvas หรือ ScrolledCanvas เป็นอาร์กิวเมนต์ มันควรจะใช้เมื่อเต่าจะถูกใช้เป็นส่วนหนึ่งของโปรแกรมบางส่วน. หน้าจอฟังก์ชั่น () ส่งกลับวัตถุเดี่ยวของรอง TurtleScreen ฟังก์ชั่นนี้ควรจะใช้เมื่อเต่าถูกนำมาใช้เป็นเครื่องมือแบบสแตนด์อโลนสำหรับการทำกราฟิก ในฐานะที่เป็นวัตถุเดี่ยวมรดกจากระดับนี้เป็นไปไม่ได้. วิธีการทั้งหมดของ TurtleScreen / หน้าจอยังมีชีวิตอยู่ในขณะที่ฟังก์ชั่นคือเป็นส่วนหนึ่งของอินเตอร์เฟซขั้นตอนที่มุ่งเน้น. RawTurtle (นามแฝง: RawPen) กำหนดวัตถุเต่าซึ่งวาดบน TurtleScreen . คอนสตรัคมันต้องการผ้าใบ, ScrolledCanvas หรือ TurtleScreen เป็นอาร์กิวเมนต์ดังนั้นวัตถุ RawTurtle ทราบว่าจะวาดได้มาจาก RawTurtle เป็นเต่ารอง (นามแฝง: ปากกา) ซึ่งดึง "" หน้าจอ - อินสแตนซ์ซึ่งถูกสร้างโดยอัตโนมัติหากไม่ได้ แล้วในปัจจุบัน. วิธีการทั้งหมดของ RawTurtle / เต่ายังมีชีวิตอยู่ในขณะที่ฟังก์ชั่นคือส่วนหนึ่งของอินเตอร์เฟซขั้นตอนที่มุ่งเน้น. อินเตอร์เฟซขั้นตอนให้ฟังก์ชั่นที่จะได้มาจากวิธีการของหน้าจอการเรียนและเต่า พวกเขามีชื่อเดียวกับวิธีการที่สอดคล้องกัน วัตถุหน้าจอจะถูกสร้างขึ้นโดยอัตโนมัติเมื่อใดก็ตามที่ฟังก์ชั่นที่ได้มาจากวิธีการที่หน้าจอที่เรียกว่า (ไม่มีชื่อ) วัตถุเต่าจะถูกสร้างขึ้นโดยอัตโนมัติเมื่อใดของฟังก์ชั่นที่ได้จากวิธีการที่เต่าจะเรียกว่า

























การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
ภาพกราฟิกเต่า เป็นวิธีที่นิยมสำหรับการแนะนำโปรแกรมให้เด็ก ๆ มันเป็นส่วนหนึ่งของต้นฉบับโลโก้ ภาษาโปรแกรมที่พัฒนาโดย วอลลี่ และ feurzig ซีมัวร์ พาร์เพิร์ทใน 1966 .

คิดว่าเต่าตู้เริ่มต้นที่ ( 0 , 0 ) ใน x-y เครื่องบิน หลังจากนำเข้าเต่าให้มันสั่งเต่า ไปข้างหน้า ( 15 ) และการเคลื่อนไหว ( บนหน้าจอ ) 15 พิกเซลในทิศทางมันหันวาดเส้นมันย้าย ให้มันสั่งเต่า ขวา ( 25 ) , และมันก็หมุนอยู่ที่ 25 องศาตามเข็มนาฬิกา .

โดยรวมด้วยกันเหล่านี้และคำสั่งที่คล้ายกัน รูปทรงซับซ้อนและภาพได้อย่างง่ายดายสามารถวาด

เต่าโมดูลขยาย reimplementation ของเดียวกันที่ชื่อโมดูลจากงูเหลือมมาตรฐานกระจายถึงรุ่น Python 2.5

มันพยายามที่จะรักษาประโยชน์ของโมดูลเต่าเก่าและจะ ( เกือบ ) 100% เข้ากันได้กับมัน ซึ่งหมายความว่าในสถานที่แรกที่จะช่วยให้โปรแกรมเมอร์ในการเรียนรู้ที่จะใช้คำสั่งทุกชั้นเรียนและวิธีการโต้ตอบเมื่อใช้โมดูลจากภายในไม่ได้ใช้งานใช้กับสวิตช์ - N .

เต่าโมดูลให้ภาพกราฟิกเต่า primitives , ทั้งในและมุ่งเน้นเชิงวัตถุขั้นตอนวิธีเพราะใช้ tkinter สำหรับต้นแบบกราฟิกจะต้องเป็นรุ่นที่ติดตั้งด้วยการสนับสนุนของงูหลาม TK

อินเตอร์เฟซการใช้หลักสองสองชั้น :

เรียน turtlescreen กำหนดกราฟิก Windows เป็นสนามเด็กเล่นสำหรับภาพวาดเต่า ของผู้สร้างต้องการ tkinter ผ้าใบ หรือ scrolledcanvas เป็นอาร์กิวเมนต์มันควรจะใช้เมื่อเต่าถูกใช้เป็นส่วนหนึ่งของโปรแกรมบาง

ฟังก์ชัน screen() ส่งกลับวัตถุของคลาสซิงเกิลตัน turtlescreen . ฟังก์ชั่นนี้ควรใช้เมื่อเต่าถูกใช้เป็นเครื่องมือแบบสแตนด์อโลนสำหรับทำกราฟิก เป็นซิงเกิลตันวัตถุสืบทอดจากคลาสนี้เป็นไปไม่ได้

วิธีการทั้งหมดของ turtlescreen / หน้าจอยังมีชีวิตอยู่เป็นฟังก์ชันเช่นเป็นส่วนหนึ่งของกระบวนการที่มุ่งเน้นการเชื่อมต่อ

rawturtle ( นามแฝง : rawpen เต่า ) กำหนดวัตถุที่วาดบน turtlescreen . ของผู้สร้างต้องเป็นผ้าใบ scrolledcanvas หรือ turtlescreen เป็นอาร์กิวเมนต์ ดังนั้นวัตถุ rawturtle รู้ว่าวาด

ได้มาจาก rawturtle เป็นเต่า subclass ( นามแฝง : ปากกา ) ซึ่งสามารถดึง " หน้าจอ " - ตัวอย่างซึ่งโดยอัตโนมัติสร้างถ้าไม่ได้อยู่แล้ว

วิธีการทั้งหมดของ rawturtle / เต่ายังมีชีวิตอยู่เป็นฟังก์ชันคือส่วนหนึ่งของกระบวนการที่มุ่งเน้นการเชื่อมต่อ

ติดต่อขั้นตอนให้ ฟังก์ชั่น ซึ่งจะได้มาจากวิธีการของชั้นเรียนที่หน้าจอ และเต่า พวกเขามีชื่อเดียวกันกับวิธีการที่สอดคล้องกัน วัตถุที่สร้างขึ้นโดยอัตโนมัติที่หน้าจอเป็นฟังก์ชั่นที่ได้มาจากวิธีการหน้าจอที่เรียกว่า( ยังไม่มีชื่อ ) เต่าที่เป็นวัตถุที่สร้างขึ้นโดยอัตโนมัติเมื่อใดก็ตามที่ใด ๆของฟังก์ชันที่ได้จากเต่า วิธีการนี้เรียกว่า
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2024 I Love Translation. All reserved.

E-mail: