import array def main(): # The first Unicode standard supported 16 bit characters # 65535 n = (2**16)-1 print(" Size = ",n) # Create a character array of size n and # fill the character array with X character_array = ['X'] * n start = 0 end = int(n/64) # 1023 lines print(" start = ",start) print(" end = ",end) text_buffer = array.array( 'u' , character_array ) # The # # chr() # # function returns the character that represents the specified unicode. for i in range(31,n): text_buffer[i] = chr(i) for l in range(0,32): print(" Line = {0:4d} ".format(l),end=" ") for c in range(0,64): print( text_buffer[start] , end="" ) start = start + 1 print() if ( __name__ == "__main__" ): main()