当前位置:网站首页>批阅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年提交的课程小论文进行评阅。本文给出了相应的处理程序。

● 相关图表链接:
边栏推荐
- Mysql大合集,你要内容的这里全都有
- JS implementation of Slide Puzzle verification
- Explanation of OSI layer 7 model (easy to understand in Chinese)
- SQL 注入绕过(四)
- ROS+Gazebo中红绿黄交通灯如何实现?
- Introduction to hybrid apps
- 原理图合并中的技巧
- Cesium Click to obtain longitude and latitude (2D coordinates)
- 4G-learn from great partners
- Cvpr22 collected papers | hierarchical residual multi granularity classification network based on label relation tree
猜你喜欢

Wangxinling, tanweiwei Shanhai (extended version of Chorus) online audition lossless FLAC Download

Complex and inefficient logistics? Three steps to solve problems in enterprise administration

From how to use to how to implement a promise

设计电商秒杀系统

低代码DSL里面在数仓中的实践

Take n multiple table names of a database as the values of a column in another table (the range can be a table in another database)

Figure out the difference between MIT, BSD and Apache open source protocols

Use code binding DataGridView control to display tables in program interface

Cesium 多边形增加文字标签(polygon 加 label)多边形中心点偏移问题解决

Jenkins - 邮件通知 Email Notification 插件
随机推荐
Interpretation of the source code of scheduledthreadpoolexecutor (II)
架构高可靠性应用知识图谱 ----- 架构演进之路
File transfer protocol --ftp
Take n multiple table names of a database as the values of a column in another table (the range can be a table in another database)
Jenkins - Groovy Postbuild 插件丰富 Build History 信息
js实现时钟
STM32F103的11个定时器
Jenkins - built in variable access
Explanation of OSI layer 7 model (easy to understand in Chinese)
Dynamic Host Configuration Protocol
SQL 注入繞過(二)
STM32的通用定时器与中断
系统管理员设置了系统策略,禁止进行此安装。解决方案
「大道智创」获千万级preA+轮融资,推出科技消费机器人
JS实现滑动拼图验证
Skills in schematic merging
[Yocto RM] 4 - Source Directory Structure
New choice for database Amazon Aurora
如何以数据驱动「客户全生命周期管理」,提高线索转化率及客户满意度?
Based on am335x development board arm cortex-a8 -- acontis EtherCAT master station development case