#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목트리생성문제2020-10-05 02:45
작성자

1.for i in range (1,14):

    if i%2==0:

        pass

    else:

        print(str(i*'*').center(13))

2.for i in range (1,14):

    if i%2==0:

        pass

    else:

        print((i*'*').center(13))

1번식은 정상적인트리가 만들어지지만

2번식은 이상하게 별이 배열되는이유가뭔가요?

댓글