- 论坛徽章:
- 0
|
php是这样设置的- $code = new seccode();
- $code->code = $seccode;
- $code->type = $seccodedata['type'];
- $code->width = $seccodedata['width'];
- $code->height = $seccodedata['height'];
- $code->background = $seccodedata['background'];
- $code->adulterate = $seccodedata['adulterate'];
- $code->ttf = $seccodedata['ttf'];
- $code->angle = $seccodedata['angle'];
- $code->color = $seccodedata['color'];
- $code->size = $seccodedata['size'];
- $code->shadow = $seccodedata['shadow'];
- $code->animator = $seccodedata['animator'];
- $code->fontpath = DISCUZ_ROOT.'./images/fonts/';
- $code->datapath = DISCUZ_ROOT.'./images/seccode/';
- $code->includepath = DISCUZ_ROOT.'./include/';
- $code->display();
复制代码 python好像是这样的- code = Code(seccode,type,width,height,color,size)
- code.display()
复制代码 虽然写法简便了些,总感觉不直观 |
|