当前位置:网站首页>批阅2022春季学期课程小论文提交情况
批阅2022春季学期课程小论文提交情况
2022-06-28 00:38:00 【卓晴】

简 介: 对于2022年提交的课程小论文进行评阅。本文给出了相应的处理程序。
关键词:信号与系统,Paper
§01成绩登记
批阅成绩最大的困难在于成绩统计EXCEL表格中寻找对应的学号对应的一行,然后将对应的批阅成绩写入对应的栏。下面通过编写简单Python处理程序帮助处理。
一、获得学生信息
期末成绩信息存储在 (SS2022S\DOCUMENT\SCORE\FINAL)中。首先从最初两列拷贝出学号与姓名,存储在DOP的TEXT对象中。

▲ 图1.1.1 记录学生信息EXCEL表格然后将上述信息存储在infor.zip
from head import *
idstr = 4
idall = [s.split('\t') for s in tspgetdopstring(-idstr).split('\r\n') if len(s) > 0]
iddim = []
namedim = []
for item in idall:
iddim.append(item[0])
namedim.append(item[1])
paperdim = [0] * len(iddim)
printf(paperdim)
tspsave('infor', id=iddim, name=namedim, paper=paperdim)
二、录入成绩
1、录入方法
使用下面程序将成绩录入 Infor 中的所有的成绩。
from headm import * # =
id, name, paper = tspload('infor', 'id', 'name', 'paper')
iidd = ''
score = -1
if len(sys.argv) > 1:
iidd = sys.argv[1]
if len(sys.argv) > 2:
score = int(sys.argv[2])
else:
printf("Usage : id score\a")
exit()
def ids2id(ids):
idslen = len(ids)
for iddn,idi in enumerate(id):
if idi[-idslen:] == ids:
return iddn
return -1
def ids2name(ids):
for iddn,idi in enumerate(name):
if ids == idi:
return iddn
return -1
idn = ids2id(iidd)
if idn < 0:
idn = ids2name(iidd)
if idn >= 0:
if score >= 0:
printff("%s(%s): %d--> %d"%(id[idn], name[idn], paper[idn], score))
paper[idn]=score
else:
printff("%s(%s): %d"%(id[idn], name[idn], paper[idn]))
else:
printf("%s:ERROR"%iidd)
tspsave('infor', id=id, name=name, paper=paper)
printf('\a')
2、合并成绩
#!/usr/local/bin/python
# -*- coding: gbk -*-
#============================================================
# PPTEXT.PY -- by Dr. ZhuoQing 2022-06-27
#
# Note:
#============================================================
from head import *
id, name, paper = tspload('infor', 'id', 'name', 'paper')
outtext = ""
for i in range(len(id)):
outtext = outtext + "%s %d\r\n"%(name[i], paper[i])
printf(outtext)
clipboard.copy(outtext)
printf('\a')
#------------------------------------------------------------
# END OF FILE : PPTEXT.PY
#============================================================
最终提交论文的学生:90名。
※ 总 结 ※
对于2022年提交的课程小论文进行评阅。本文给出了相应的处理程序。

● 相关图表链接:
边栏推荐
猜你喜欢

The system administrator has set the system policy to prohibit this installation. Solution

后勤事务繁杂低效?三步骤解决企业行政管理难题

Anonymous Mount & named mount

Skills in schematic merging

MySQL interview question set

General timer and interrupt of stm32

Appium自动化测试基础 — ADB常用命令(一)

To understand what is synchronous, asynchronous, serial, parallel, concurrent, process, thread, and coroutine

SQL 注入繞過(二)

The interviewer asked: can you simulate the new operator of JS
随机推荐
Jenkins - accédez à la variable de paramètre personnalisée Jenkins, en traitant les espaces dans la valeur de la variable
MySQL interview question set
ScheduledThreadPoolExecutor源码解读(二)
JS 随机数(随机数 小数)
后勤事务繁杂低效?三步骤解决企业行政管理难题
Jenkins - Groovy Postbuild 插件丰富 Build History 信息
[elt.zip] openharmony paper Club - memory compression for data intensive applications
低代码DSL里面在数仓中的实践
Jenkins - 访问 Jenkins 自定义参数变量,处理变量值中含有空格
Cesium color color (assignment) random color
Redis~Geospatial(地理空间)、Hyperloglog(基数统计)
SQL injection bypass (2)
Jenkins - Copy Artifact 插件 Build 之间数据共享传递
Use code binding DataGridView control to display tables in program interface
Description du format geojson (détails du format)
JS array random value (random array value)
SQL 注入绕过(四)
Adding text labels to cesium polygons the problem of polygon center point offset is solved
Embedded must learn! Detailed explanation of hardware resource interface - based on arm am335x development board (Part 2)
图灵机启动顺序