当前位置:网站首页>批阅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年提交的课程小论文进行评阅。本文给出了相应的处理程序。
● 相关图表链接:
边栏推荐
- yarn下载报错There appears to be trouble with your network connection. Retrying.
- Low code solution - a low code solution for digital after-sales service covering the whole process of work order, maintenance and Finance
- JS实现滑动拼图验证
- How to handle computer security certificate errors
- 王心凌、谭维维 - 山海(副歌加长版) 在线试听无损FLAC下载
- Cesium 多边形(polygon)extrudedHeight 和 height 的区别
- Using redis bitmap to realize personnel online monitoring
- 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)
- MySQL interview question set
- ShardingSphere-proxy-5.0.0建立mysql读写分离的连接(六)
猜你喜欢
如何系统学习LabVIEW?
Appium automation test foundation ADB common commands (I)
Complex and inefficient logistics? Three steps to solve problems in enterprise administration
数智学习|湖仓一体实践与探索
Jenkins - Pipeline concept and creation method
SQL injection bypass (IV)
The interviewer asked: can you simulate the new operator of JS
Cesium 多边形(polygon)extrudedHeight 和 height 的区别
Numpy----np. Tile() function parsing
Cesium 点击绘制多边形(动态绘制多边形)
随机推荐
New choice for database Amazon Aurora
Anonymous Mount & named mount
From how to use to how to implement a promise
文件傳輸協議--FTP
MySQL collection, here are all the contents you want
ScheduledThreadPoolExecutor源码解读(二)
TD Hero online conference on July 2
Solve the problem that the page cannot scroll when ionic4 uses the hammerjs gesture press event
Dynamic Host Configuration Protocol
「大道智创」获千万级preA+轮融资,推出科技消费机器人
geojson 格式說明(格式詳解)
Jenkins - Pipeline syntax
Complex and inefficient logistics? Three steps to solve problems in enterprise administration
Jenkins - 内置变量访问
Description du format geojson (détails du format)
11 timers for STM32F103
投资同业存单基金是靠谱吗,同业存单基金安全吗
Cesium 抗锯齿(线,边框等)
JS implementation clock
ShardingSphere-proxy-5.0.0建立mysql读写分离的连接(六)