pygame�÷�
�l(f��)���r(sh��)�g:2023-09-11 16:38 [ ��Ҫ�ԌW(xu��)�W(w��ng)ԭ��(chu��ng) ] �l(f��)����: samohu ��x: 4450

1.��(chu��ng)������   ���ڳߴ磨300��300��

screen=pygame.display.set_mode((300,300))

2.�xȡ���؈DƬ

img1=pygame.image.load(r"1.jpg")

3.�������м��댦(du��)��   (0,0)�@ʾ��λ��

screen.blit(img1,(0,0))

4.ˢ�´������@ʾ���������Ќ�(du��)��

pygame.display.update()

5.�˳�����

sys.exit(0)

#��������

pygame.init() #��������Ҫ��ʼ��

#�@ȡ���w��(du��)��  (���C(j��)���w�ļ���·��,��̖(h��o))

text=pygame.font.Font(r"C:\Windows\Fonts\SIMLI.TTF",30)  

#�O(sh��)�þ��w�ı���(n��i)�� �Ƿ���X

text_fmt=text.render(strr,True,(255,255,255))

#���ı��ӵ������� (80,100)�ı��@ʾλ��

screen.blit(text_fmt,(80,100))

Python�������T2021�°�̳�
��Ҫ�ԌW(xu��)�W(w��ng)�̳� ��60 Ԫ
�M(j��n)��ُ�I
�����u(p��ng)Փ
���ӱ���
�������A���񹲺͇��ĸ��(xi��ng)���·�Ҏ(gu��)��
�Г�(d��n)�������О����(d��o)�µķ���؟(z��)�Σ�
��վ�Й�(qu��n)������h���Р�(zh��ng)�h�u(p��ng)Փ��
���c���u(p��ng)Փ���������ѽ�(j��ng)��x������
�����l����
V
�ػݳ�ֵ
“(li��n)ϵ�ͷ�
APP���d
�ٷ�΢��
����픲�
����x��:
��X�k�� ƽ���O(sh��)Ӌ(j��) �҃�(n��i)�O(sh��)Ӌ(j��) �����O(sh��)Ӌ(j��) �C(j��)е�O(sh��)Ӌ(j��) ���I(y��)�Ԅ�(d��ng)�� Ӱҕ��(d��ng)�� �����_�l(f��) �W(w��ng)��O(sh��)Ӌ(j��) ��(hu��)Ӌ(j��)�n�� �dȤ���L AIGC