第十六智能车竞赛总决赛获奖证书寄送

Posted 卓晴

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了第十六智能车竞赛总决赛获奖证书寄送相关的知识,希望对你有一定的参考价值。

简 介: 由于2021年第十六届全国大学智能车东北赛区以及全国总决赛是通过线上比赛,所以参赛队伍的获奖证书需要通过邮寄的方式发送。

关键词 智能车竞赛线上比赛证书

 

§01 书下载


  2021年第十六届全国大学生智能车竞赛 在8月25日上午正式落下了帷幕 。为了满足部分参赛同学在新一学年开始前对于参赛经历与获奖证明需求,全国大学生智能车竞赛组委会已经将获奖信息公布在 智能车竞赛网站 ,总决赛获奖证书电子文档可以被下载:

1、获奖公告

2、证书下载

  详细介绍可以参见: 第十六届全国大学生智能车竞赛比赛获奖证书格式说明以及下载链接

 

§02 书寄送


  竞赛组委会还准备部分纪念品,由于疫情影响只能通过邮寄的方式发送参赛队伍。

▲ 图1.1 比赛的纪念品

1、东北赛区

  东北赛区组委会准备的纪念品:按一个参赛队员50元,领队教师100元标准准备了纪念品。做了帆布袋以及电动牙刷。

▲ 图2.1 东北赛区组委会准备的纪念布袋

2、全国总决赛

  全国总决赛组委会将会为每支参赛队伍寄送获奖证书,其中包括一个竞赛纪念布袋。

▲ 图2.2 参加总决赛的纪念布袋

▲ 图2.3 打印的获奖证书

▲ 图2.4 统计参赛队伍邮寄地址


■ 相关文献链接:

● 相关图表链接:

#!/usr/local/bin/python
# -*- coding: gbk -*-
#============================================================
# CERT.PY                      -- by Dr. ZhuoQing 2021-08-25
#
# Note:
#============================================================
from head import *
#------------------------------------------------------------
studentc = [2, 4, 3, 11, 19]        # template, text, award, order, sn
snhead = '○ NCSC2021-09'
text_width = 40
#------------------------------------------------------------
testid = 16
#------------------------------------------------------------
groupdict = {'基础四轮':'01', '节能信标':'02', '电磁越野':'03',
             '双车接力':'04', '全向行进':'05', '单车拉力':'06',
             '专科基础':'07', '智能视觉':'08', '百度智慧交通':'09',
             '讯飞智慧餐厅':'10', '航天智慧物流':'11'}
awarddict = {'一等奖':1, '二等奖':2, '三等奖':3, '优胜奖':4}
def printjpg(cid, filename):
    tspsaveimagerange(cid, filename,0, 50)
    printff(cid, filename)
#------------------------------------------------------------
def getsnstr(group, award, num):
    printff(group, award, num)
    return '%s-%s-%d%03d'%(snhead, groupdict[group], awarddict[award], num)
#------------------------------------------------------------
def boldheitifont(s):
    rets = ''
    for c in s:
        rets = rets + '\\h\\*%s\\.'%c
    return rets
def boldfont(s):
    rets = ''
    for c in s:
        rets = rets + '\\*%s\\.'%c
    return rets
def settextwidth(s, width):
    rets = ''
    count = 0
    for c in s:
        if c in '\\\\ . * h'.split():
            rets = rets + c
            if c == '.':
                if count >= width - 1:
                    count -= (width - 1)
                    rets += '\\r\\n'
            continue
        if ord(c) < 127: count += 1
        else: count += 2
        rets = rets + c
        if count >= width:
            count -= width
            rets += '\\r\\n'
    return rets
#------------------------------------------------------------
#------------------------------------------------------------
def setstudenttext(tid, university, student, group, division):
    global text_width
    university = boldheitifont(university)
    student = boldheitifont(student)
    group = boldfont(group)
    setstr = '%s %s 同学在2021年第十六届全国大学生智能车竞赛中荣获%s%s组比赛'%(university, student, division, group)
    setstr = settextwidth(setstr, text_width)
    tspsettext(tid, setstr)
def setmentortext(tid, university, mentor, team, group, division):
    global text_width
    university = boldheitifont(university)
    mentor = boldheitifont(mentor)
    nameflag = 0
    if len(team) > 0:
        if team[-1] == '队':
            nameflag = 1
    team = boldfont(team)
    if nameflag == 0:
        team = team + ' 队'
    else: team = team + ''
    group = boldfont(group)
    setstr = '%s %s 教师指导%s在2021年第十六届全国大学生智能车竞赛中荣获%s%s组比赛'%(university, mentor, team, division, group)
    setstr = settextwidth(setstr, text_width)
    tspsettext(tid, setstr)
def setteamtext(tid, university, team, group, division):
    global text_width
    university = boldheitifont(university)
    nameflag = 0
    if len(team) > 0:
        if team[-1] == '队':
            nameflag = 1
    team = boldfont(team)
    if nameflag == 0:
        team = team + ' 队'
    else: team = team + ''
    group = boldfont(group)
    setstr = '%s %s在2021年第十六届全国大学生智能车竞赛中荣获%s%s组比赛'%(university, team, division, group)
    setstr = settextwidth(setstr, text_width)
    tspsettext(tid, setstr)
def setawardstr(awardstr):
    tspsettext(studentc[2], awardstr)
#    tspsettext(mentorc[2], awardstr)
#    tspsettext(teamc[2], awardstr)
def setorderstr(orderstr):
    if len(orderstr) > 0:
        orderstr = '(%s)'%orderstr
    tspsettext(studentc[3], orderstr)
#    tspsettext(mentorc[3], orderstr)
#    tspsettext(teamc[3], orderstr)
#------------------------------------------------------------
printcount = 0
def printcert(university, team, group, award, order, students, mentors, division = '全国总决赛', picdir=r'd:\\temp'):
    global printcount
    printcount += 1
    snstr = getsnstr(group, award, printcount)
    tspsettext(studentc[4], snstr)
    if len(order) < 2: order = ''
    team = team.replace('"', '').replace(' ', '')
    setawardstr(award)
    setorderstr(order)
    setteamtext(studentc[1], university, team, group, division)
    tsprv()
    outfn = os.path.join(picdir, '%s_%s_%s.jpg'%(university, team, group))
    printjpg(studentc[0], outfn)
    for s in students:
        printcount += 1
        snstr = getsnstr(group, award, printcount)
        tspsettext(studentc[4], snstr)
        setstudenttext(studentc[1], university, s, group, division)
        tsprv()
        outfn = '%s\\\\%s_%s_%s.jpg'%(picdir, university, team, s)
        printjpg(studentc[0], outfn)
    for s in mentors:
        printcount += 1
        snstr = getsnstr(group, award, printcount)
        tspsettext(studentc[4], snstr)
        setmentortext(studentc[1], university, s, team, group, division)
        tsprv()
        outfn = '%s\\\\%s_%s_%s.jpg'%(picdir, university, team, s)
        printjpg(studentc[0], outfn)
#------------------------------------------------------------
if __name__ == "__main__":
#    setstudenttext(testid, '大红枣大学', '银杏', '普通四轮')
#    setmentortext(testid, '大红枣大学', '以色列', '朗朗乾坤倒背如流队', '普通四轮')
#    setteamtext(testid, '大红枣大学', '朗朗乾坤倒背如流队', '普通四轮')
#    setawardstr('一等奖')
#    setorderstr('第一名')
#    tsprv()
    sstr = ['银杏', '红桃']
    mstr = ['金鱼', '银鱼']
    printcert('大红枣大学', '风火轮四轮', '全向行进', '一等奖', '', sstr, mstr, picdir=r'd:\\temp')
    printf('\\a')
#------------------------------------------------------------
#------------------------------------------------------------
#        END OF FILE : CERT.PY
#============================================================
#!/usr/local/bin/python
# -*- coding: gbk -*-
#============================================================
# FINALPRINT.PY                -- by Dr. ZhuoQing 2021-08-26
#
# Note:
#============================================================
from head import *
import cert
import shutil
allstrid = 26
group = '航天智慧物流'
division = '全国总决赛'
cert.printcount = 0
#------------------------------------------------------------
picdirdef = r'd:\\temp\\pic'
if not os.path.isdir(picdirdef):
    os.mkdir(picdirdef)
else:
    shutil.rmtree(picdirdef)
    os.mkdir(picdirdef)
#------------------------------------------------------------
allstrsect = [s for s in tspgetdopstring(-allstrid).split('\\r\\n') if len(s) > 20]
allstr = []
for s in allstrsect:
    if s.count('\\t') > 0:
        allstr.append(s.split('\\t'))
    else:
        ss = [a for a in s.split(' ') if len(s) > 0]
        allstr.append(ss)
#------------------------------------------------------------
for id,a in enumerate(allstr):
    if a[0] == '赛区':
        continue
    a = [s.replace('"', '').replace(' ', '').replace('?', '') for s in a]
    university = a[1]
    team = a[2]
    mentors = [s for s in a[3:5] if len(s) > 1]
    students = [s for s in a[5:-2] if len(s) > 1]
    if a[-1] in "一等奖 二等奖 三等奖 优胜奖".split():
        students = [s for s in a[5:-1] if len(s) > 1]
        award = a[-1]
        order = '.'
    else:
        award = a[-2]
        order = a[-1]
    printff(id,university, team, mentors, students, award, order)
    cert.printcert(university,
              team,
              group,
              award,
              order,
              students,
              mentors,
              division,
              picdir = r'd:\\temp\\pic')
    printf('\\a')
#    exit()
#------------------------------------------------------------
printf('\\a')
#------------------------------------------------------------
#        END OF FILE : FINALPRINT.PY
#============================================================

以上是关于第十六智能车竞赛总决赛获奖证书寄送的主要内容,如果未能解决你的问题,请参考以下文章

第十七届智能车竞赛总决赛证书模板与生成

第十六届全国大学生智能车竞赛全国总决赛获奖排行榜

第十七届全国大学智能车竞赛全国总决赛奖项统计

第十六届全国大学生智能车竞赛创意组获奖名单 | 带有学生与指导教师信息

第十七届全国大学生智能车竞赛讯飞组总决赛获奖信息汇总(公示版本)

第十六届全国大学生智能车竞赛比赛获奖证书格式说明