题解 | #小飞机#

小飞机

https://www.nowcoder.com/practice/5cd9598f28f74521805d2069ce4a108a

解这个题,为何不同牛刀!

def plane(x,n,e=""):
    print(x*n,end=e)

def p1():
    plane(" ",5)
    plane("*",2)
    plane(" ",5)
    print()

def p2():
    plane("*",12)
    print()

def p3():
    plane(" ",4)
    plane("*",1)
    plane(" ",2)
    plane("*",1)
    plane(" ",4)
    print("")

if __name__=="__main__":
    p1()
    p1()
    p2()
    p2()
    p3()
    p3()

全部评论

相关推荐

09-02 18:18
门头沟学院 Java
感觉自己已经不属于校园了,晚上去操场散步看着草坪上的人,尸体暖暖的。
offersarec...:我已经不敢去操场了,那些青春跃动的身影,三两成群嬉声一片。我从未拥有过,也回不去
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务