当前位置:网站首页>Review the submission of small papers for 2022 spring semester courses
Review the submission of small papers for 2022 spring semester courses
2022-06-28 02:52:00 【Zhuoqing】

Jane Medium : about 2022 Review the course papers submitted in . This paper gives the corresponding processing program .
key word: Signals and systems ,Paper
§01 become Performance registration
batch The biggest difficulty in reading grades lies in the statistics of grades EXCEL Find the row corresponding to the corresponding student number in the table , Then write the corresponding review result into the corresponding column . The following is a simple Python Handlers help handle .
One 、 Get student information
The final grade information is stored in (SS2022S\DOCUMENT\SCORE\FINAL) in . First, copy the student number and name from the first two columns , Stored in DOP Of TEXT In the object .

▲ chart 1.1.1 Student information EXCEL form The above information is then stored in 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)
Two 、 Enter the score
1、 Input method
Use the following procedure to enter your grades Infor All the achievements in .
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、 Consolidated results
#!/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
#============================================================
The student who finally submitted the paper :90 name .
※ total junction ※
Yes On 2022 Review the course papers submitted in . This paper gives the corresponding processing program .

● Related chart Links :
边栏推荐
- 简单ELK配置实现生产级别的日志采集和查询实践
- PSM总结
- Writing C program with GCC and makefile for the first time
- 【历史上的今天】6 月 25 日:笔记本之父诞生;Windows 98 发布;通用产品代码首次商用
- 喜新厌旧?IT公司为什么宁愿花20k招人,也不愿涨薪留住老员工
- [today in history] June 8: the father of the world wide web was born; PHP public release; IPhone 4 comes out
- 无心剑英汉双语诗004.《静心》
- 【历史上的今天】6 月 16 日:甲骨文成立;微软 MSX 诞生;快速傅里叶变换发明者出生
- [block coding] simulation of image block coding based on MATLAB
- 【二維碼圖像矯正增强】基於MATLAB的二維碼圖像矯正增强處理仿真
猜你喜欢

迪赛智慧数——柱状图(折柱混合图):2021年毕业季租房价格和房租收入比

在线JSON转PlainText工具

在线文本按行批量反转工具
![[today in history] June 1: Napster was founded; MS-DOS original author was born; Google sells Google SketchUp](/img/fe/497eab2ac4a762298e71d28ed26e41.png)
[today in history] June 1: Napster was founded; MS-DOS original author was born; Google sells Google SketchUp

【历史上的今天】6 月 11 日:蒙特卡罗方法的共同发明者出生;谷歌推出 Google 地球;谷歌收购 Waze

Exploration on the construction path of real-time digital warehouse integrating digital intelligence learning and streaming batch

【历史上的今天】6 月 6 日:世界 IPv6 启动纪念日;《俄罗斯方块》发布;小红书成立

Writing based on stm32

Win11新建不了文本文档?Win11右键无法新建文本文档的解决方法

math_ (function & sequence) meaning of limit & misunderstanding and symbol sorting / neighborhood & de centring neighborhood & neighborhood radius
随机推荐
StaticLayout的使用详解
MFC common current path
[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established
A low-cost method to increase private domain traffic with simple maintenance
JDBC and MySQL databases
迪赛智慧数——柱状图(折柱混合图):2021年毕业季租房价格和房租收入比
【二維碼圖像矯正增强】基於MATLAB的二維碼圖像矯正增强處理仿真
CRF+BiLSTM代码分步骤解读
Unity WebGL打包后怎么运行(火狐配置)
MFC常用 当前路径
在线JSON转PlainText工具
Opencv -- Hough transform and some problems encountered
Résumé de la graduation
在线文本按行批量反转工具
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真
[block coding] simulation of image block coding based on MATLAB
【历史上的今天】6 月 13 日:分组交换网路的“亲子纠纷”;博弈论创始人出生;交互式电视初现雏形
[fuzzy neural network] simulation of fuzzy neural network based on MATLAB
无心剑汉英双语诗004.《剑》
【模糊神经网络】基于matlab的模糊神经网络仿真