摘要:
$font_file = 'font/simhei.ttf';header("Content-type: image/png");$im = imagecreate(200,60);$bg = imagecolorallocate($im,255,255,255);$color = imagecolorallocate($im, 0, 0, 255);imagestring($im, 5, 0, 0, $qq, $color);imagefttext($im, 13, 0, 0, 35, $color, $font_file,mb_convert_encod
阅读全文
posted @ 2013-04-19 11:27
网宗
阅读(3568)
推荐(0)
编辑
摘要:
# _*_ coding:utf8 _*_from threading import Threadimport timedef run(n): for tc in xrange(1,60): print str(n)+'的'+str(tc)+'线程一直在执行时间:'+str(time.time())+"\n" time.sleep(1) passdef startthread(): t1 = Thread(target=run,args=(1,)) t2 = Thread(target=run,args=(2,)) ...
阅读全文
posted @ 2013-04-19 10:25
网宗
阅读(146)
推荐(0)
编辑