日期:2024-05-16 16:54
1,积木式代码如下:
2,Python代码如下:
# -*- coding: UTF-8 -*-
# MindPlus
# Python
from unihiker import GUI
u_gui=GUI()
u_gui.fill_round_rect(x=15,y=20,w=210,h=50,r=5,color="#FF6600")
u_gui.fill_rect(x=15,y=60,w=210,h=40,color="#FFFFFF")
u_gui.draw_rect(x=15,y=60,w=210,h=40,width=1,color="#000000")
u_gui.fill_rect(x=110,y=100,w=20,h=200,color="#000000")
u_gui.draw_text(text="我在创意编程社团等你",x=20,y=30,font_size=15, color="#FFFFFF")
u_gui.draw_text(text="行空板第",x=72,y=70,font_size=12, color="#000000")
u_gui.draw_digit(text="2",x=140,y=75,font_size=13, color="#FF6600")
u_gui.draw_text(text="站",x=156,y=70,font_size=12, color="#000000")
u_gui.draw_text(text="北",x=30,y=75,font_size=8, color="#000000")
u_gui.draw_text(text="南",x=200,y=75,font_size=8, color="#000000")
while True:
pass
3.输出效果如下: