~cpp def prin(): for l in range (size-k,0,-1): print ' ', for l in range (0,2*k+1): print pat, print if __name__ == '__main__': pat= str (raw_input('패턴을 입력해주세요>>')) size=input('크기를 입력해 주세요>>') for k in range (size): prin () for k in range (size-2,-2,-1): prin ()