Python drawing rose implementation code

Today, I will introduce a Python to draw a beautiful rose. It is very simple to use Python's turtle library. This painting library is very simple, but you still need to test the path direction and debug it slowly. The following code has a certain reference value.

Use python to draw a rose, take it and give it to your beloved one!

Explain that I have created two .py files here, one is the main file for drawing roses (draw_rose.py), and the other is the data file (rose_data.py) for storing roses that will be called in the main drawing file.

So you need to create two .py files and place them in the same directory (Chinese paths are not recommended), and then call the draw_rose.py file to draw a beautiful rose.

The following code:

The first is the draw_rose.py file:

import turtle
# rose_data is the py file that stores the data
import rose_data
 
def draw_line(pix_list):'''According to pix_Pixel data drawing of list'''
 turtle.penup()
 turtle.goto(*pix_list[0])
 turtle.pendown()for pix in pix_list:
 turtle.goto(*pix)
    
def draw_pic(pic_data):'''pic_data is a dictionary, each item stores each pixel data'''for i inrange(1,len(pic_data)+1):
 pix_list = pic_data[i]draw_line(pix_list)
  
def init():
 turtle.title('rose')
 turtle.pensize(2)
 turtle.hideturtle()
 turtle.color('red','red')
 turtle.setup(width=800, height=500, startx=0, starty=0)if __name__ =='__main__':init()draw_pic(rose_data.data)
 turtle.mainloop()

Then the rose_data.py file:

'''
The data dictionary stores drawing data
The dictionary value is a list, storing the pixel coordinates of each stroke
'''
data ={1:[(-217,108),(-218,108),(-219,108),(-220,108),(-221,108),(-222,108),(-223,108),(-224,108),(-225,107),(-226,107),(-227,107),(-228,107),(-229,107),(-230,107),(-231,107),(-232,107),(-233,107),(-234,107),(-235,107),(-236,107),(-237,106),(-238,106),(-239,106),(-240,106),(-241,106),(-242,106),(-243,106),(-244,106),(-245,106),(-246,106),(-247,105),(-248,105),(-249,105),(-250,105),(-251,105),(-252,105),(-253,105),(-254,105),(-255,105),(-256,104),(-257,104),(-258,104),(-259,104),(-260,104),(-261,104),(-262,103),(-263,103),(-264,103),(-265,103),(-266,102),(-267,102),(-268,102),(-269,102),(-270,101),(-271,101),(-272,101),(-273,100),(-274,100),(-275,99),(-276,99),(-277,99),(-278,98),(-279,98),(-280,97),(-281,97),(-282,96),(-283,95),(-284,95),(-285,94),(-286,93),(-287,92),(-288,91),(-289,90),(-290,89),(-290,88),(-291,87),(-291,86),(-292,85),(-292,84),(-292,83),(-292,82),(-292,81),(-292,80),(-292,79),(-292,78),(-291,77),(-291,76),(-291,75),(-291,74),(-290,73),(-290,72),(-289,71),(-289,70),(-288,69),(-287,68),(-287,67),(-286,66),(-286,65),(-286,64),(-285,63),(-285,62),(-285,61),(-285,60),(-285,59),(-285,58),(-285,57),(-285,56),(-286,55),(-286,54),(-286,53),(-286,52),(-286,51),(-286,50),(-286,49),(-286,48),(-286,47),(-286,46),(-286,45),(-286,44),(-286,43),(-286,42),(-286,41),(-286,40),(-286,39),(-286,38),(-286,37),(-285,36),(-285,35),(-285,34),(-285,33),(-285,32),(-285,31),(-285,30),(-284,29),(-284,28),(-284,27),(-283,26),(-283,25),(-283,24),(-282,23),(-282,22),(-282,21),(-281,20),(-280,19),(-280,18),(-279,17),(-278,16),(-278,15),(-277,14),(-276,13),(-275,12),(-275,11),(-274,10),(-273,9),(-273,8),(-272,7),(-272,6),(-272,5),(-271,4),(-271,3),(-270,2),(-270,1),(-270,0),(-269,-1),(-269,-2),(-268,-3),(-268,-4),(-267,-5),(-267,-6),(-266,-7),(-265,-8),(-264,-9),(-263,-10),(-263,-11),(-262,-12),(-261,-13),(-260,-14),(-259,-15),(-259,-16),(-258,-17),(-257,-18),(-256,-19),(-256,-20),(-255,-21),(-254,-22),(-253,-23),(-252,-24),(-252,-25),(-251,-26),(-250,-27),(-249,-28),(-248,-29),(-247,-30),(-246,-31),(-246,-32),(-245,-33),(-244,-34),(-243,-35),(-242,-36),(-241,-37),(-241,-38),(-240,-39),(-239,-40),(-238,-41),(-237,-42),(-236,-43),(-235,-44),(-234,-45),(-233,-46),(-234,-46),(-233,-47),(-232,-48),(-231,-49),(-230,-50),(-229,-51),(-228,-52),(-227,-53),(-227,-52),(-226,-53),(-225,-54),(-224,-55),(-223,-56),(-222,-57),(-221,-57),(-220,-58),(-219,-58),(-218,-58),(-217,-59),(-216,-59),(-215,-59),(-214,-60),(-213,-60),(-212,-60),(-211,-60),(-210,-61),(-209,-61),(-208,-61),(-207,-61),(-206,-62),(-205,-62),(-204,-62),(-203,-62),(-202,-62),(-201,-62),(-200,-63),(-199,-63),(-198,-63),(-197,-63),(-196,-63),(-195,-63),(-194,-63),(-193,-64),(-192,-64),(-191,-64),(-190,-64),(-189,-64),(-188,-64),(-187,-64),(-186,-64),(-185,-64),(-184,-65),(-183,-65),(-182,-65),(-181,-65),(-180,-65),(-179,-65),(-178,-65),(-177,-65),(-176,-65),(-175,-65),(-174,-65),(-173,-65),(-172,-65),(-171,-65),(-170,-65),(-169,-65),(-168,-65),(-167,-65),(-166,-66),(-165,-66),(-164,-66),(-163,-66),(-162,-66),(-161,-66),(-160,-66),(-159,-66),(-158,-66),(-157,-66),(-156,-66),(-155,-66),(-154,-65),(-153,-65),(-152,-65),(-151,-65),(-150,-65),(-149,-65),(-148,-65),(-147,-65),(-146,-65),(-145,-65),(-144,-65),(-143,-65),(-142,-65),(-141,-65),(-140,-65),(-139,-64),(-138,-64),(-137,-64),(-136,-64),(-135,-64),(-134,-64),(-133,-63),(-132,-63),(-131,-63),(-130,-63),(-129,-62),(-128,-62),(-127,-62),(-126,-61),(-125,-61),(-124,-61),(-123,-61),(-122,-60),(-121,-60),(-120,-60),(-119,-59),(-118,-59),(-117,-58),(-116,-58),(-115,-58),(-114,-57),(-113,-57),(-112,-56),(-111,-56),(-110,-56),(-109,-55),(-108,-55),(-107,-54),(-106,-54),(-105,-53),(-104,-53),(-103,-52),(-102,-52),(-101,-51),(-100,-51),(-99,-50),(-98,-50),(-97,-49),(-96,-49),(-95,-48),(-94,-47),(-93,-47),(-92,-46),(-91,-45),(-90,-45),(-89,-44),(-88,-44),(-87,-43),(-86,-42),(-85,-41),(-84,-41),(-83,-40),(-82,-39),(-81,-39),(-80,-38),(-79,-37),(-78,-36),(-77,-36),(-76,-35),(-75,-34),(-74,-33),(-73,-32),(-72,-31),(-71,-30),(-70,-29),(-69,-28),(-68,-27),(-67,-26),(-66,-25),(-65,-24),(-65,-23),(-64,-22),(-63,-21),(-62,-20),(-62,-19),(-61,-18),(-60,-17),(-60,-16),(-59,-15),(-58,-14),(-58,-13),(-57,-12),(-56,-11),(-56,-10),(-55,-9),(-55,-8),(-54,-7),(-53,-6),(-53,-5),(-52,-4),(-52,-3),(-51,-2),(-51,-1),(-50,0),(-50,1),(-49,2),(-49,3),(-48,4),(-48,5),(-47,6),(-47,7),(-46,8),(-46,9),(-46,10),(-45,11),(-45,12),(-44,13),(-44,14),(-44,15),(-43,16),(-43,17),(-43,18),(-42,19),(-42,20),(-42,21),(-41,22),(-41,23),(-41,24),(-40,25),(-40,26),(-40,27),(-40,28),(-39,29),(-39,30),(-39,31),(-39,32),(-38,33),(-38,34),(-38,35),(-38,36),(-38,37),(-37,38),(-37,39),(-37,40),(-37,41),(-37,42),(-37,43),(-37,44),(-36,45),(-36,44),(-37,45),(-37,46),(-36,47),(-36,48),(-36,49),(-36,50),(-36,51),(-36,52),(-36,53),(-36,54),(-36,55),(-36,56),(-36,57),(-36,58),(-36,59),(-36,60),(-36,61),(-37,62),(-37,63),(-37,64),(-37,65),(-37,66),(-37,67),(-37,68),(-37,69)],2:[(-275,11),(-276,10),(-277,10),(-278,9),(-279,9),(-280,8),(-281,8),(-282,7),(-283,6),(-284,6),(-285,5),(-286,5),(-287,4),(-288,3),(-289,3),(-290,2),(-291,1),(-292,1),(-293,0),(-294,-1),(-295,-1),(-296,-2),(-297,-3),(-298,-3),(-299,-4),(-300,-5),(-301,-6),(-302,-6),(-303,-7),(-304,-8),(-305,-9),(-306,-10),(-307,-11),(-308,-12),(-309,-13),(-310,-14),(-310,-15),(-311,-16),(-311,-17),(-311,-18),(-311,-19),(-311,-20),(-310,-21),(-310,-22),(-310,-23),(-309,-24),(-309,-25),(-309,-26),(-308,-27),(-308,-28),(-307,-29),(-307,-30),(-306,-31),(-306,-32),(-305,-33),(-304,-34),(-304,-35),(-303,-36),(-303,-37),(-302,-38),(-301,-39),(-300,-40),(-299,-41),(-299,-42),(-298,-43),(-297,-44),(-296,-45),(-295,-46),(-294,-47),(-293,-48),(-293,-49),(-292,-50),(-291,-51),(-290,-52),(-289,-52),(-288,-53),(-287,-54),(-286,-55),(-285,-56),(-284,-57),(-283,-58),(-282,-59),(-281,-60),(-280,-61),(-279,-61),(-278,-62),(-277,-63),(-276,-64),(-275,-64),(-274,-65),(-273,-66),(-272,-66),(-271,-67),(-270,-68),(-269,-68),(-268,-69),(-267,-69),(-266,-70),(-265,-70),(-264,-71),(-263,-71),(-262,-71),(-261,-72),(-260,-72),(-259,-72),(-258,-73),(-257,-73),(-256,-73),(-255,-73),(-254,-73),(-253,-74),(-252,-74),(-251,-74),(-250,-74),(-249,-74),(-248,-75),(-247,-75),(-246,-75),(-245,-75),(-244,-75),(-243,-75),(-242,-75),(-241,-76),(-240,-76),(-239,-76),(-238,-76),(-237,-76),(-236,-76),(-235,-76),(-234,-76),(-233,-76),(-232,-76),(-231,-76),(-230,-76),(-229,-76),(-228,-76),(-227,-76),(-226,-76),(-225,-76),(-224,-76),(-223,-76),(-222,-76),(-221,-76),(-220,-76),(-219,-76),(-218,-76),(-217,-75),(-216,-75),(-215,-75),(-214,-75),(-213,-75),(-212,-74),(-211,-74),(-210,-74),(-209,-73),(-208,-73),(-207,-73),(-206,-72),(-205,-72),(-204,-71),(-203,-71),(-202,-70),(-201,-69),(-200,-68),(-199,-67),(-198,-66),(-197,-65),(-196,-64),(-196,-63)],3:[(-195,-63),(-196,-64),(-197,-65),(-198,-66),(-199,-67),(-200,-68),(-201,-69),(-202,-70),(-203,-71),(-204,-71),(-205,-72),(-206,-73),(-207,-74),(-208,-75),(-209,-76),(-209,-77),(-210,-78),(-211,-79),(-212,-80),(-212,-81),(-213,-82),(-214,-83),(-214,-84),(-215,-85),(-215,-86),(-216,-87),(-216,-88),(-216,-89),(-217,-90),(-217,-91),(-217,-92),(-218,-93),(-218,-94),(-218,-95),(-218,-96),(-218,-97),(-218,-98),(-218,-99),(-218,-100),(-218,-101),(-218,-102),(-218,-103),(-218,-104),(-218,-105),(-218,-106),(-217,-107),(-217,-108),(-217,-109),(-217,-110),(-216,-111),(-216,-112),(-216,-113),(-215,-114),(-215,-115),(-214,-116),(-214,-117),(-213,-118),(-213,-119),(-212,-120),(-211,-121),(-210,-122),(-209,-123),(-208,-123),(-207,-123),(-206,-123),(-206,-124),(-205,-124),(-204,-124),(-203,-124),(-202,-124),(-201,-123),(-200,-123),(-199,-123),(-198,-123),(-197,-123),(-196,-122),(-195,-122),(-194,-122),(-193,-122),(-192,-122),(-191,-121),(-190,-121),(-189,-121),(-188,-121),(-187,-121),(-186,-121),(-185,-121),(-184,-120),(-183,-120),(-182,-120),(-181,-120),(-180,-120),(-179,-120),(-178,-120),(-177,-120),(-176,-120),(-175,-120),(-174,-120),(-173,-119),(-172,-119),(-171,-119),(-170,-119),(-169,-119),(-168,-119),(-167,-119),(-166,-119),(-165,-119),(-164,-119),(-163,-119),(-162,-119),(-161,-119),(-160,-119),(-159,-119),(-158,-119),(-157,-119),(-156,-119),(-155,-119),(-154,-119),(-153,-120),(-152,-120),(-151,-120),(-150,-120),(-149,-120),(-148,-120),(-147,-120),(-146,-120),(-145,-120),(-144,-120),(-143,-120),(-142,-121),(-141,-121),(-140,-121),(-139,-121),(-138,-121),(-137,-121),(-136,-122),(-135,-122),(-134,-122),(-133,-122),(-132,-122),(-131,-123),(-130,-123),(-129,-123),(-128,-124),(-127,-124),(-126,-124),(-125,-124),(-124,-124),(-123,-125),(-122,-125),(-121,-125),(-120,-125),(-119,-125),(-118,-125),(-117,-125),(-116,-125),(-115,-125),(-114,-125),(-113,-125),(-112,-125),(-111,-125),(-110,-125),(-109,-125),(-108,-125),(-107,-125),(-106,-125),(-105,-125),(-104,-125),(-103,-125),(-102,-125),(-101,-125),(-100,-125),(-99,-124),(-98,-124),(-97,-124),(-96,-124),(-95,-124),(-94,-124),(-93,-124),(-92,-123),(-91,-123),(-90,-123),(-89,-123),(-88,-123),(-87,-123),(-86,-122),(-85,-122),(-84,-122),(-83,-122),(-82,-121),(-81,-121),(-80,-121),(-79,-121),(-78,-120),(-77,-120),(-76,-120),(-75,-120),(-74,-119),(-73,-119),(-72,-119),(-71,-118),(-70,-118),(-69,-117),(-68,-117),(-67,-117),(-66,-116),(-65,-116),(-64,-115),(-63,-115),(-62,-114),(-61,-114),(-60,-113),(-59,-113),(-58,-112),(-57,-111),(-56,-111),(-55,-110),(-54,-109),(-53,-108),(-52,-107),(-51,-106),(-51,-105),(-50,-104),(-50,-103),(-49,-102),(-49,-101),(-49,-100),(-48,-99),(-48,-98),(-48,-97),(-47,-96),(-47,-95),(-47,-94),(-46,-93),(-46,-92),(-46,-91),(-46,-90),(-45,-89),(-45,-88),(-45,-87),(-45,-86),(-45,-85),(-44,-84),(-44,-83),(-44,-82),(-44,-81),(-44,-80),(-44,-79),(-44,-78),(-44,-77),(-44,-76),(-44,-75),(-44,-74),(-44,-73),(-44,-72),(-44,-71),(-44,-70),(-44,-69),(-44,-68),(-45,-67),(-45,-66),(-45,-65),(-46,-64),(-46,-63),(-46,-62),(-47,-61),(-47,-60),(-47,-59),(-48,-59),(-48,-58),(-49,-57),(-50,-56),(-51,-55),(-52,-54),(-53,-53),(-54,-52),(-55,-51),(-56,-50),(-57,-50),(-58,-49),(-59,-48),(-60,-47),(-61,-47),(-62,-46),(-63,-45),(-64,-45),(-65,-44),(-66,-43),(-67,-43),(-68,-42),(-69,-41),(-70,-41),(-71,-40),(-72,-39),(-73,-39),(-74,-38),(-75,-38),(-76,-37),(-77,-36),(-78,-36),(-79,-36)],4:[(-50,-56),(-49,-57),(-48,-58),(-47,-59),(-46,-59),(-45,-59),(-44,-59),(-43,-59),(-42,-60),(-41,-60),(-40,-60),(-39,-60),(-38,-60),(-37,-60),(-36,-60),(-35,-60),(-34,-60),(-33,-60),(-32,-60),(-31,-60),(-30,-60),(-29,-60),(-28,-60),(-27,-60),(-26,-60),(-25,-60),(-24,-59),(-23,-59),(-22,-59),(-21,-59),(-20,-59),(-19,-58),(-18,-58),(-17,-58),(-16,-58),(-15,-57),(-14,-57),(-13,-57),(-12,-56),(-11,-56),(-10,-56),(-9,-55),(-8,-55),(-7,-54),(-6,-54),(-5,-53),(-4,-53),(-3,-52),(-2,-52),(-1,-51),(0,-51),(1,-50),(2,-50),(3,-49),(4,-48),(5,-48),(6,-47),(7,-46),(8,-45),(9,-45),(10,-44),(11,-43),(12,-42),(13,-41),(14,-40),(15,-39),(16,-39),(17,-38),(18,-37),(19,-36),(20,-36),(21,-35),(22,-34),(23,-34),(24,-34),(25,-33),(26,-33),(27,-33),(28,-33),(29,-32),(30,-32),(31,-31),(32,-31),(33,-31),(34,-30),(35,-30),(36,-29),(37,-29),(38,-28),(39,-27),(39,-28),(40,-27),(41,-26),(41,-25),(42,-24),(42,-23),(42,-22),(41,-21),(41,-20),(40,-19),(40,-18),(39,-17),(38,-16),(37,-15),(36,-14),(35,-13),(34,-12),(33,-11),(33,-10),(32,-9),(31,-8),(30,-7),(30,-6),(29,-5),(28,-4),(27,-3),(27,-2),(26,-1),(26,0),(25,1),(25,2),(25,3),(24,4),(24,5),(24,6),(24,7),(24,8),(23,9),(22,10),(22,11),(21,12),(20,13),(19,14),(18,15),(17,16),(17,17),(16,18),(15,19),(14,20),(13,21),(12,21),(11,22),(10,23),(9,24),(8,25),(7,26),(6,27),(5,28),(4,28),(3,29),(2,30),(1,31),(0,32),(-1,32),(-2,33),(-3,34),(-4,34),(-5,35),(-6,36),(-7,36),(-8,37),(-9,37),(-10,38),(-11,39),(-12,39),(-13,40),(-14,40),(-15,41),(-16,41),(-17,42),(-18,42),(-19,42),(-20,43),(-21,43),(-22,43),(-23,44),(-24,44),(-25,44),(-26,44),(-27,45),(-28,45),(-29,45),(-30,45),(-31,45),(-32,45),(-33,45),(-34,45),(-35,45)],5:[(-208,85),(-209,86),(-210,87),(-210,88),(-211,89),(-211,90),(-212,91),(-212,92),(-213,93),(-213,94),(-213,95),(-214,96),(-214,97),(-214,98),(-215,99),(-215,100),(-215,101),(-215,102),(-216,103),(-216,104),(-216,105),(-216,106),(-216,107),(-216,108),(-215,109),(-215,110),(-215,111),(-214,112),(-214,113),(-214,114),(-213,115),(-213,116),(-212,117),(-211,118),(-210,119),(-210,120),(-209,121),(-208,122),(-207,123),(-206,124),(-205,125),(-204,126),(-203,127),(-202,128),(-201,129),(-200,129),(-199,130),(-198,131),(-197,132),(-196,133),(-195,134),(-194,135),(-193,136),(-192,137),(-191,138),(-190,139),(-189,140),(-188,141),(-187,141),(-186,142),(-185,143),(-184,144),(-183,145),(-182,146),(-181,147),(-180,148),(-179,148),(-178,149),(-177,150),(-176,151),(-175,151),(-174,152),(-173,152),(-172,153),(-171,153),(-170,154),(-169,154),(-168,154),(-167,154),(-166,155),(-165,155),(-164,155),(-163,155),(-162,155),(-161,155),(-160,155),(-159,155),(-158,154),(-157,154),(-156,154),(-155,154),(-154,153),(-153,153),(-152,152),(-151,152),(-150,151),(-149,151),(-148,151),(-147,150),(-146,150),(-145,149),(-144,149),(-143,149),(-142,148),(-141,148),(-140,147),(-139,147),(-138,146),(-137,146),(-136,146),(-135,145),(-134,145),(-133,144),(-132,144),(-131,143),(-130,143),(-129,142),(-128,142),(-127,142),(-126,141),(-125,141),(-124,140),(-123,140),(-122,139),(-121,139),(-120,139),(-119,138),(-118,138),(-117,137),(-116,136),(-115,135),(-114,135),(-113,134),(-112,133),(-112,132),(-111,131),(-110,130),(-110,129),(-109,128),(-109,127),(-108,126),(-108,125),(-108,124),(-108,123),(-108,122)],6:[(-123,111),(-122,112),(-121,113),(-120,114),(-119,115),(-118,115),(-117,116),(-116,117),(-115,118),(-114,119),(-113,119),(-112,120),(-111,121),(-110,121),(-109,122),(-108,122),(-107,123),(-106,123),(-105,124),(-104,124),(-103,124),(-102,125),(-101,125),(-100,125),(-99,126),(-98,126),(-97,126),(-96,126),(-95,126),(-94,126),(-93,126),(-92,126),(-91,126),(-90,126),(-89,126),(-88,125),(-87,125),(-86,125),(-85,124),(-84,124),(-83,123),(-82,123),(-81,123),(-80,122),(-79,122),(-78,121),(-77,121),(-76,120),(-75,120),(-74,120),(-73,119),(-72,119),(-71,118),(-70,118),(-69,118),(-68,117),(-67,117),(-66,116),(-65,116),(-64,116),(-63,115),(-62,115),(-61,114),(-60,114),(-59,113),(-58,113),(-57,112),(-56,112),(-55,111),(-54,111),(-53,110),(-52,110),(-51,109),(-50,108),(-49,107),(-48,107),(-47,106),(-46,105),(-45,104),(-45,103),(-44,102),(-43,101),(-43,100),(-42,99),(-42,98),(-41,97),(-41,96),(-40,95),(-40,94),(-40,93),(-39,92),(-39,91),(-39,90),(-39,89),(-38,88),(-38,87),(-38,86),(-38,85),(-38,84),(-38,83),(-38,82),(-38,81),(-38,80),(-38,79),(-38,78),(-38,77),(-38,76),(-38,75),(-38,74),(-38,73),(-38,72),(-38,71),(-38,70),(-38,69),(-38,68),(-39,67),(-39,66),(-39,65),(-39,64),(-39,63),(-39,62),(-40,61),(-40,60),(-40,59),(-40,58),(-41,57),(-41,56),(-41,55),(-41,54),(-42,53),(-42,52),(-42,51),(-43,50),(-43,49),(-43,48),(-44,47),(-44,46),(-44,45),(-45,44),(-45,43),(-45,42),(-46,41),(-46,40),(-47,39),(-47,38),(-48,37),(-48,36),(-49,35),(-50,34),(-50,33),(-51,32),(-52,31),(-52,30),(-53,29),(-54,28),(-54,27),(-55,26),(-56,25),(-57,24),(-58,23),(-59,22),(-60,21),(-60,20),(-61,19),(-62,18),(-63,17),(-64,16),(-65,15),(-66,14),(-67,13),(-68,12),(-69,11),(-70,10),(-71,9),(-72,8),(-73,8),(-74,7),(-75,6),(-76,5),(-77,4),(-78,3),(-79,3),(-80,2),(-81,1),(-82,0),(-83,0),(-84,-1),(-85,-2),(-86,-3),(-87,-3),(-88,-4),(-89,-5),(-90,-6),(-91,-6),(-92,-7),(-93,-7),(-94,-8),(-95,-9),(-96,-9),(-97,-10),(-98,-10),(-99,-11),(-100,-12),(-101,-12),(-102,-13),(-103,-14),(-104,-14),(-105,-15),(-106,-16),(-107,-16),(-108,-17),(-109,-17),(-110,-18),(-111,-19),(-112,-19),(-113,-20),(-114,-21),(-115,-21),(-116,-22),(-117,-23),(-118,-23),(-119,-24),(-120,-25),(-121,-25),(-122,-26),(-123,-27),(-124,-28),(-125,-28),(-126,-29),(-127,-30),(-128,-31),(-129,-31),(-130,-32),(-131,-33),(-132,-34),(-133,-35),(-134,-36),(-135,-37),(-136,-38),(-137,-39),(-138,-40),(-139,-41),(-140,-42),(-140,-43),(-141,-44),(-142,-45),(-142,-46),(-143,-47),(-143,-48),(-144,-49),(-144,-50),(-145,-51),(-145,-52),(-146,-53),(-146,-54),(-147,-55),(-147,-56),(-147,-57),(-148,-58),(-148,-59),(-149,-60),(-149,-61),(-149,-62),(-150,-63),(-150,-64),(-150,-65),(-150,-66)],7:[(-225,57),(-225,58),(-226,59),(-227,59),(-228,60),(-229,61),(-230,62),(-231,62),(-232,63),(-233,64),(-234,64),(-235,65),(-236,65),(-237,66),(-238,66),(-239,66),(-240,67),(-241,67),(-242,67),(-243,68),(-244,68),(-245,68),(-246,68),(-247,68),(-248,68),(-249,68),(-250,67),(-251,67),(-252,66),(-253,66),(-254,65),(-254,64),(-254,63),(-254,62),(-254,61),(-254,60),(-253,59),(-253,58),(-253,57),(-252,56),(-252,55),(-252,54),(-251,53),(-251,52),(-251,51),(-251,50),(-250,49),(-250,48),(-250,47),(-250,46),(-250,45),(-250,44),(-250,43),(-250,42),(-250,41),(-250,40),(-250,39),(-250,38),(-250,37),(-250,36),(-250,35),(-250,34),(-250,33),(-250,32),(-250,31),(-250,30),(-249,29),(-249,28),(-249,27),(-249,26),(-249,25),(-249,24),(-249,23),(-249,22),(-249,21),(-249,20),(-249,19),(-249,18),(-249,17),(-248,16),(-248,15),(-248,14),(-248,13),(-248,12),(-248,11),(-248,10),(-247,9),(-247,8),(-247,7),(-247,6),(-247,5),(-246,4),(-246,3),(-246,2),(-246,1),(-245,0),(-245,-1),(-244,-2),(-244,-3),(-243,-4),(-243,-5),(-242,-6),(-242,-7),(-241,-8),(-240,-9),(-240,-10),(-239,-11),(-238,-12),(-238,-13),(-237,-14),(-236,-15),(-235,-16),(-234,-17),(-233,-18),(-233,-19),(-232,-20),(-231,-21),(-230,-22),(-229,-23),(-228,-24),(-227,-25),(-226,-26),(-225,-27),(-224,-28),(-223,-29),(-222,-29),(-221,-30),(-220,-31),(-219,-32),(-218,-33),(-217,-33),(-216,-34),(-215,-35),(-214,-36),(-213,-36),(-212,-37),(-211,-38),(-210,-38),(-209,-39),(-208,-39),(-207,-40),(-206,-41),(-205,-41),(-204,-42),(-203,-42),(-202,-43),(-201,-43),(-200,-43),(-199,-44),(-198,-44),(-197,-45),(-196,-45),(-195,-46),(-194,-46),(-193,-47),(-192,-47),(-191,-47),(-190,-48),(-189,-48),(-188,-49),(-187,-49),(-186,-50),(-185,-50),(-184,-50),(-183,-51),(-182,-51),(-181,-52),(-180,-52),(-179,-53),(-178,-53),(-177,-54),(-176,-54),(-175,-55),(-174,-55),(-173,-55),(-172,-56),(-171,-56),(-170,-57),(-169,-57),(-168,-58),(-167,-58),(-166,-59),(-165,-59),(-164,-59),(-163,-60),(-162,-60),(-161,-61),(-160,-61),(-159,-62),(-158,-62),(-157,-63),(-156,-63),(-155,-64),(-154,-64),(-153,-65),(-152,-65)],8:[(-197,88),(-198,88),(-199,88),(-200,88),(-201,87),(-202,87),(-203,87),(-204,87),(-205,86),(-206,86),(-207,85),(-208,85),(-209,85),(-210,84),(-211,84),(-212,83),(-213,83),(-214,82),(-215,81),(-216,80),(-217,79),(-217,78),(-218,77),(-219,76),(-219,75),(-219,74),(-219,73),(-220,72),(-220,71),(-220,70),(-220,69),(-220,68),(-219,67),(-219,66),(-219,65),(-219,64),(-219,63),(-218,62),(-218,61),(-218,60),(-218,59),(-217,58),(-217,57),(-217,56),(-217,55),(-216,54),(-216,53),(-216,52),(-215,51),(-215,50),(-214,49),(-214,48),(-213,47),(-212,46),(-211,45),(-211,44),(-210,43),(-209,42),(-208,42),(-207,41),(-206,40),(-205,40),(-204,39),(-203,39),(-202,38),(-201,38),(-200,37),(-199,37),(-198,36),(-197,36),(-196,35),(-195,35),(-194,34),(-193,34),(-192,34),(-191,33),(-190,33),(-189,33),(-188,32),(-187,32),(-186,32),(-185,31),(-184,31),(-183,31),(-182,30),(-181,30),(-180,30),(-179,30),(-178,29),(-177,29),(-176,29),(-175,29),(-174,28),(-173,28),(-172,28),(-171,27),(-170,27),(-169,27),(-168,27),(-167,26),(-166,26),(-165,26),(-164,26),(-163,25),(-162,25),(-161,25),(-160,24),(-159,24),(-158,24),(-157,24),(-156,23),(-155,23),(-154,23),(-153,22),(-152,22),(-151,22),(-150,22),(-149,21),(-148,21),(-147,21),(-146,20),(-145,20),(-144,20),(-143,19),(-142,19),(-141,18),(-140,18),(-139,18),(-138,17),(-137,17),(-136,16),(-135,16),(-134,15),(-133,15),(-132,14),(-131,14),(-130,13),(-129,12),(-128,12),(-127,11),(-126,10),(-125,9),(-125,8),(-124,7),(-124,6),(-123,5),(-123,4),(-123,3),(-122,2),(-122,1),(-122,0),(-122,-1),(-122,-2),(-122,-3),(-122,-4),(-122,-5),(-122,-6),(-122,-7),(-122,-8),(-122,-9),(-122,-10),(-123,-11),(-123,-12),(-123,-13),(-123,-14),(-124,-15),(-124,-16),(-124,-17),(-125,-18),(-125,-19),(-125,-20),(-126,-21),(-126,-22)],9:[(-221,69),(-221,68),(-221,67),(-222,66),(-222,65),(-223,64),(-223,63),(-223,62),(-224,61),(-224,60),(-224,59),(-225,58),(-225,57),(-226,56),(-226,55),(-226,54),(-227,53),(-227,52),(-227,51),(-228,50),(-228,49),(-228,48),(-229,47),(-229,46),(-229,45),(-230,44),(-230,43),(-230,42),(-230,41),(-231,40),(-231,39),(-231,38),(-231,37),(-232,36),(-232,35),(-232,34),(-232,33),(-232,32),(-232,31),(-233,30),(-233,29),(-232,28),(-232,27),(-232,26),(-232,25),(-232,24),(-232,23),(-231,22),(-231,21),(-231,20),(-230,19),(-230,18),(-230,17),(-230,16),(-229,15),(-229,14),(-228,13),(-228,12),(-227,11),(-227,10),(-227,9),(-226,8),(-226,7),(-225,6),(-225,5),(-224,4),(-223,3),(-223,2),(-222,1),(-221,0),(-221,-1),(-220,-2),(-219,-3),(-218,-4),(-217,-5),(-216,-6),(-215,-7),(-214,-8),(-213,-9),(-212,-10),(-211,-11),(-210,-11),(-209,-12),(-208,-12),(-207,-13),(-206,-13),(-205,-14),(-204,-14),(-203,-15),(-202,-15),(-201,-15),(-200,-16),(-199,-16),(-198,-16),(-197,-17),(-196,-17),(-195,-17),(-194,-17),(-193,-18),(-192,-18),(-191,-18),(-190,-18),(-189,-19),(-188,-19),(-187,-19),(-186,-19),(-185,-19),(-184,-20),(-183,-20),(-182,-20),(-181,-20),(-180,-20),(-179,-20),(-178,-20),(-177,-21),(-176,-21),(-175,-21),(-174,-21),(-173,-21),(-172,-21),(-171,-21),(-170,-21),(-169,-21),(-168,-22),(-167,-22),(-166,-22),(-165,-22),(-164,-22),(-163,-22),(-162,-22),(-161,-22),(-160,-22),(-159,-22),(-158,-22),(-157,-22),(-156,-22),(-155,-22),(-154,-23),(-153,-23),(-152,-23),(-151,-23),(-150,-23),(-149,-23),(-148,-23),(-147,-23),(-146,-23),(-145,-23),(-144,-23),(-143,-23),(-142,-23),(-141,-23),(-140,-23),(-139,-23),(-138,-23),(-137,-23),(-136,-23),(-135,-23),(-134,-22),(-133,-22),(-132,-22),(-131,-22),(-130,-23),(-129,-23),(-128,-23),(-127,-23),(-126,-23),(-126,-22),(-125,-23),(-124,-24),(-123,-24),(-122,-25)],10:[(-103,90),(-103,91),(-102,92),(-101,92),(-100,93),(-99,93),(-98,94),(-97,94),(-96,95),(-95,95),(-94,95),(-93,95),(-92,96),(-91,96),(-90,96),(-89,96),(-88,96),(-87,96),(-86,96),(-85,96),(-84,96),(-83,96),(-82,96),(-81,95),(-80,95),(-79,95),(-78,95),(-77,94),(-76,94),(-75,93),(-74,93),(-73,92),(-72,92),(-71,91),(-70,90),(-69,89),(-68,88),(-67,87),(-66,86),(-66,85),(-65,84),(-65,83),(-65,82),(-65,81),(-64,80),(-64,79),(-64,78),(-65,77),(-65,76),(-66,75),(-67,74),(-67,73),(-68,72),(-69,71),(-70,70),(-71,69),(-72,68),(-73,67),(-74,66),(-75,65),(-76,64),(-77,64),(-78,63),(-79,62),(-80,61),(-81,61),(-82,60),(-83,59),(-84,58),(-85,58),(-86,57),(-87,56),(-88,55),(-89,55),(-90,54),(-91,53),(-92,52),(-93,51),(-94,51),(-95,50),(-96,49),(-97,48),(-98,47),(-99,46),(-100,45),(-101,45),(-102,44),(-103,43),(-104,42),(-105,41),(-105,40),(-106,40),(-106,39),(-107,38),(-108,37),(-109,36),(-110,35),(-111,34),(-112,33),(-112,32),(-113,31),(-114,30),(-114,29),(-115,28),(-116,27),(-116,26),(-117,25),(-118,24),(-118,23),(-119,22),(-119,21),(-120,20),(-120,19),(-121,18),(-121,17),(-122,16),(-122,15),(-123,14),(-123,13),(-124,12),(-124,11),(-125,10),(-125,9)],11:[(-64,80),(-64,79),(-64,78),(-64,77),(-64,76),(-64,75),(-64,74),(-64,73),(-64,72),(-64,71),(-64,70),(-64,69),(-63,68),(-63,67),(-63,66),(-63,65),(-63,64),(-63,63),(-64,62),(-64,61),(-64,60),(-64,59),(-64,58),(-64,57),(-64,56),(-64,55),(-64,54),(-65,53),(-65,52),(-65,51),(-65,50),(-65,49),(-65,48),(-66,47),(-66,46),(-66,45),(-67,44),(-67,43),(-67,42),(-68,41),(-68,40),(-68,39),(-69,38),(-69,37),(-70,36),(-70,35),(-70,34),(-71,33),(-71,32),(-72,31),(-72,30),(-72,29),(-73,28),(-73,27),(-74,26),(-74,25),(-74,24),(-75,23),(-75,22),(-76,21),(-76,20),(-76,19),(-77,18),(-77,17),(-78,16),(-78,15),(-79,14),(-79,13),(-79,12),(-80,11),(-80,10),(-81,9),(-81,8),(-81,7),(-82,6),(-82,5),(-83,4),(-83,3),(-83,2),(-84,1),(-84,0),(-84,-1)],12:[(-150,101),(-151,102),(-151,103),(-152,104),(-153,104),(-154,105),(-155,106),(-156,107),(-157,107),(-158,108),(-159,109),(-160,109),(-161,110),(-162,110),(-163,110),(-164,111),(-165,111),(-166,111),(-167,112),(-168,112),(-169,112),(-170,112),(-171,112),(-172,112),(-173,112),(-174,112),(-175,112),(-176,112),(-177,111),(-178,111),(-179,111),(-180,110),(-181,110),(-182,109),(-183,109),(-184,108),(-185,108),(-186,107),(-187,106),(-188,105),(-189,105),(-190,104),(-191,103),(-191,102),(-192,101),(-193,100),(-194,99),(-194,98),(-195,97),(-195,96),(-196,95),(-196,94),(-196,93),(-196,92),(-196,91),(-196,90),(-196,89),(-195,88),(-195,87),(-195,86),(-195,85),(-194,84),(-194,83),(-194,82),(-193,81),(-193,80),(-193,79),(-192,78),(-192,77),(-192,76),(-191,75),(-191,74),(-190,73),(-190,72),(-189,71),(-189,70),(-188,69),(-188,68),(-187,67),(-187,66),(-186,65),(-185,64),(-184,63),(-183,62),(-183,61),(-182,60),(-181,59),(-181,58),(-180,57),(-180,56),(-179,55),(-179,54),(-178,53),(-178,52),(-178,51),(-177,50),(-177,49),(-177,48),(-177,47),(-176,46),(-176,45),(-176,44),(-176,43),(-175,42),(-175,41),(-175,40),(-175,39),(-175,38),(-174,37),(-174,36),(-174,35),(-174,34),(-174,33),(-174,32),(-173,31),(-173,30),(-173,29)],13:[(-196,89),(-195,89),(-194,88),(-193,87),(-192,87),(-192,86),(-191,86),(-190,85),(-189,85),(-188,84),(-187,84),(-186,84),(-185,83),(-184,83),(-183,83),(-182,82),(-181,82),(-180,82),(-179,81),(-178,81),(-177,81),(-176,80),(-175,80),(-174,80),(-173,80),(-172,79),(-171,79),(-170,79),(-169,79),(-168,78),(-167,78),(-166,78),(-165,77),(-164,77),(-163,77),(-162,77),(-161,76),(-160,76),(-159,76),(-158,75),(-157,75),(-156,75),(-155,74),(-154,74),(-153,73),(-152,73),(-151,72),(-150,72),(-149,71),(-148,71),(-147,70),(-146,69),(-145,68),(-144,68),(-143,67),(-142,66),(-141,65),(-140,64),(-139,63),(-139,62),(-138,61),(-137,60),(-136,59),(-136,58),(-135,57),(-134,56),(-134,55),(-133,54),(-133,53),(-132,52),(-131,51),(-131,50),(-131,49),(-131,48),(-130,47),(-130,46),(-130,45),(-129,44),(-129,43),(-129,42),(-128,41)],14:[(-150,104),(-149,104),(-148,105),(-147,105),(-146,105),(-145,106),(-144,106),(-143,106),(-142,107),(-141,107),(-140,107),(-139,108),(-138,108),(-137,108),(-136,108),(-135,109),(-134,109),(-133,109),(-132,109),(-131,109),(-130,110),(-129,110),(-128,110),(-127,110),(-126,110),(-125,110),(-124,110),(-123,110),(-122,110),(-121,110),(-120,109),(-119,109),(-118,109),(-117,109),(-116,108),(-115,107),(-114,107),(-113,106),(-112,105),(-111,105),(-110,104),(-109,103),(-108,102),(-107,101),(-107,100),(-106,99),(-105,98),(-105,97),(-105,96),(-104,95),(-104,94),(-104,93),(-104,92),(-104,91),(-104,90),(-105,89),(-105,88),(-105,87),(-106,86),(-106,85),(-106,84),(-107,83),(-107,82),(-108,81),(-108,80),(-109,79),(-109,78),(-110,77),(-111,76),(-111,75),(-112,74),(-113,73),(-113,72),(-114,71),(-115,70),(-115,69),(-116,68),(-117,67),(-117,66),(-118,65),(-119,64),(-120,63),(-121,62),(-121,61),(-122,60),(-123,59),(-124,58),(-125,57),(-126,56),(-127,55),(-128,54),(-129,53),(-129,52),(-130,51)],15:[(-181,84),(-181,85),(-181,86),(-180,87),(-180,88),(-179,89),(-179,90),(-178,91),(-177,92),(-176,93),(-175,94),(-174,95),(-173,96),(-172,97),(-171,97),(-170,98),(-169,98),(-168,99),(-167,99),(-166,100),(-165,100),(-164,100),(-163,100),(-162,101),(-161,101),(-160,101),(-159,101),(-158,101),(-157,101),(-156,101),(-155,102),(-154,102),(-153,101),(-152,101),(-151,101),(-150,101),(-149,101),(-148,101),(-147,101),(-146,100),(-145,100),(-144,100),(-143,100),(-142,100),(-141,99),(-140,99),(-139,99),(-138,98),(-137,98),(-136,97),(-135,97),(-134,96),(-133,96),(-132,95),(-131,94),(-130,94),(-129,93),(-128,92),(-127,91),(-127,90),(-128,91),(-129,92)],16:[(-157,87),(-156,87),(-155,87),(-154,88),(-153,88),(-152,88),(-151,88),(-150,87),(-149,87),(-148,86),(-148,85),(-147,84),(-147,83),(-147,82),(-147,81)]}

Then you can successfully draw a beautiful rose, and quickly take it to your beloved one.

The resulting graph is as follows:

Rose drawing result graph

So far this article on the implementation code of python drawing roses is introduced. For more related python drawing roses content, please search the previous articles of ZaLou.Cn or continue to browse the related articles below. Hope you will support ZaLou.Cn more in the future!

Recommended Posts

Python drawing rose implementation code
Python telnet login function implementation code
Python ATM function implementation code example
Python implementation of hand drawing effect example sharing
Python drawing general settings
Python basic drawing tutorial (1)
Python SMS bombing code
Python code to find bugs (2)
Python code to find bugs(7)
How to comment python code
Python code to find bugs(4)
Python code to find bugs (3)
Python code to find bugs(9)
Python drawing ring graph method
Python implementation of gomoku program
Python regular expression example code
Python implements code block folding
Python install OpenCV sample code
Python code to find bugs(6)
Python basic drawing tutorial (two)
Python code to find bugs (1)
Python code to find bugs(8)
Python implements verification code recognition
Python code to find bugs(5)
Is python code case sensitive
Python GUI simulation implementation calculator
matplotlib of python drawing module
Detailed implementation of Python plug-in mechanism
python how to view webpage code
Implementation of reverse traversal of python list
Python implementation of IOU calculation case
FM algorithm analysis and Python implementation
How to wrap in python code
Implementation of python selenium operation cookie
Python is a cross-platform language code
Implementation of python3 registration global hotkey
Implementation of python student management system
Gray-level co-occurrence matrix (with python code)
Implementation of python gradient descent algorithm
Python tcp transmission code example analysis
Free definition of python drawing legend
Python handles operation code to execl
Speed up Python code with Cython
Python requests module session code example
Python verification code interception identification code example