当前位置:网站首页>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 :
边栏推荐
- 新手炒股开户选哪家证券平台办理是最好最安全的
- 【历史上的今天】6 月 20 日:MP3 之父出生;富士通成立;谷歌收购 Dropcam
- The horizontal scrolling recycleview displays five and a half in one screen, which is lower than the five average distributions
- math_(函数&数列)极限的含义&误区和符号梳理/邻域&去心邻域&邻域半径
- Initial linear regression
- 【历史上的今天】6 月 25 日:笔记本之父诞生;Windows 98 发布;通用产品代码首次商用
- [inverted pendulum control] Simulink simulation of inverted pendulum control based on UKF unscented Kalman filter
- Online text batch inversion by line tool
- [today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established
- StaticLayout的使用详解
猜你喜欢
[today in history] June 13: parent-child disputes in packet switched networks; The founder of game theory was born; The embryonic form of interactive television
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真
How does win11 close recently opened projects? Win11 method to close recently opened projects
Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]
CMU提出NLP新范式—重构预训练,高考英语交出134高分
简单ELK配置实现生产级别的日志采集和查询实践
[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established
Online text batch inversion by line tool
榜单首发——前装搭载率站上10%大关,数字钥匙方案供应商TOP10
基于STM32的编写
随机推荐
Reprinted article: the digital economy generates strong demand for computing power Intel releases a number of innovative technologies to tap the potential of computing power
【历史上的今天】6 月 19 日:iPhone 3GS 上市;帕斯卡诞生;《反恐精英》开始测试
StaticLayout的使用详解
无心剑英汉双语诗004.《静心》
The first place on the list - the carrying rate of front-end equipment is up to 10%, and the top 10 suppliers of digital key solutions
How does win11 add printers and scanners? Win11 add printer and scanner settings
转载文章:数字经济催生强劲算力需求 英特尔发布多项创新技术挖掘算力潜能
Win11 cannot create a new text document? Solution to win11 right click failure to create a new text document
Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
Stm32f1 and stm32subeide programming example - metal touch sensor driver
[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established
数据清洗工具flashtext,效率直接提升了几十倍数
How to systematically learn LabVIEW?
批阅2022春季学期课程小论文提交情况
简单ELK配置实现生产级别的日志采集和查询实践
【 amélioration de la correction d'image de Code bidimensionnel】 simulation du traitement d'amélioration de la correction d'image de Code bidimensionnel basée sur MATLAB
Writing based on stm32
[2D code image correction and enhancement] simulation of 2D code image correction and enhancement processing based on MATLAB
[today in history] June 15: the first mobile phone virus; AI master simahe was born; Chromebook launch
2-5基础配置-Win2003增加攻击面