   Python
  


         .      ,    ,           .    !     ,        Python    pygame.





   Python



 



 ,2023



ISBN978-5-0059-5282-0

     Ridero




  


    .     (    ),    .     (  , ,    ),  .




 PyGame Windows10


 Python 3.10  :








   :








  pip install pygame  Enter








   pip   ,       cd scripts (  scripts)




,   



    Python.  IDLE (Python)








 IDLE (Python),  File NewFile








    FileSave








       













    .








      








     pygame    :

import pygame



  init ()    pygame :

pygame.init()



    ,    set_mode ()      .         Surface,    :

screen = pygame.display.set_mode ((1200, 800))

  

pygame.display.set_caption ()



  :








  

     Paint, .     ,  -.

 :

sun_surf = pygame.image.load('dog.png) # 

sun_rect = sun_surf.get_rect () #   

screen. blit (sun_surf, sun_rect) #  



!   !        ,     ,   ,  .  ,        :

pygame. display. update()

  :








    1200*800, :








    :









   .


          (     ,    ..).

     .

 .




 


      ,       png (   ).      (    ):








     (Paint  )   ( ,     )

     ,     ,    . :








      ,  .

    .  :

sun_surf = pygame.image.load('auto_1.png) # 




  .


   .

   ,     (https://www.litres.ru/pages/biblio_book/?art=68815248)  .

      Visa, MasterCard, Maestro,    ,   ,     ,  PayPal, WebMoney, ., QIWI ,       .


