Commit 839ecf16 by BellCodeEditor

save project

parent aca775eb
Showing with 16 additions and 1 deletions
import pygame
cacti=pygame.image.load('cacti.pang')
rect = cacti.get_rect()
print(rect)
print(rect.x)
print(rect.y)
print(rect.width)
print(rect.height)
-- "a/\345\274\240.py"
a=6 #长是6
a=6 #长是6
b=3 #宽是3
s=a*b #面积公式
print(s) #输出面积
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment