#!/usr/bin/python
# -*- coding: utf-8 -*-
#-*- coding:utf8 -*-
import sys
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
line_list = ['龙头摆尾',"新高资改","棋力三段","方可投机"]
idx = 0
x=600
y=300
font = ImageFont.truetype('simsun.ttc',36,index=0)
im = Image.new("RGBA",(1366,768),(0,0,0))
draw = ImageDraw.Draw(im)
for line in line_list:
pos = (x,y+50*idx)
print pos
draw.text( (x,y+50*idx), unicode(line,'UTF-8'), font=font)
idx += 1
del draw
im.save(r"d://test.png")