当前位置:网站首页>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 :
边栏推荐
- [elevator control system] design of elevator control system based on VHDL language and state machine, using state machine
- 【历史上的今天】6 月 3 日:微软推出必应搜索引擎;Larry Roberts 启动阿帕网;Visual Basic 之父出生
- 数据清洗工具flashtext,效率直接提升了几十倍数
- [today in history] June 17: the creator of the term "hypertext" was born; The birth of Novell's chief scientist; Discovery channel on
- [cloud native] - docker installation and deployment of distributed database oceanbase
- Data governance and data standards
- 【历史上的今天】6 月 12 日:美国进入数字化电视时代;Mozilla 的最初开发者出生;3Com 和美国机器人公司合并
- NER中BiLSTM-CRF解读Forward_algorithm
- 【历史上的今天】6 月 8 日:万维网之父诞生;PHP 公开发布;iPhone 4 问世
- Interview: how do lists duplicate objects according to their attributes?
猜你喜欢

Win11 cannot create a new text document? Solution to win11 right click failure to create a new text document
![[today in history] June 20: the father of MP3 was born; Fujitsu was established; Google acquires dropcam](/img/54/df623fc1004e1dca5d369b4ed2608c.png)
[today in history] June 20: the father of MP3 was born; Fujitsu was established; Google acquires dropcam

在线文本按行批量反转工具

为什么大厂压力大,竞争大,还有这么多人热衷于大厂呢?
![[today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze](/img/eb/147d4aac20639d50b204dcf424c9e2.png)
[today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze

Data governance and data standards

把腾讯搬上云:云服务器 CVM 的半部进化史

【历史上的今天】6 月 13 日:分组交换网路的“亲子纠纷”;博弈论创始人出生;交互式电视初现雏形
![[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
![Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]](/img/5f/24fd110a73734ba1638f0aad63c787.png)
Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]
随机推荐
Snake C language
【历史上的今天】6 月 1 日:Napster 成立;MS-DOS 原作者出生;谷歌出售 Google SketchUp
【历史上的今天】6 月 18 日:京东诞生;网店平台 Etsy 成立;Facebook 发布 Libra 白皮书
[today in history] June 5: Lovelace and Babbage met; The pioneer of public key cryptography was born; Functional language design pioneer born
Interview: how do lists duplicate objects according to their attributes?
【二維碼圖像矯正增强】基於MATLAB的二維碼圖像矯正增强處理仿真
Starting sequence of Turing machine
[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established
面试:List 如何根据对象的属性去重?
Exploration on the construction path of real-time digital warehouse integrating digital intelligence learning and streaming batch
Writing C program with GCC and makefile for the first time
[today in history] June 16: Oracle Bone Inscriptions was established; Microsoft MSX was born; The inventor of fast Fourier transform was born
Character interception triplets of data warehouse: substrb, substr, substring
> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
【历史上的今天】6 月 15 日:第一个手机病毒;AI 巨匠司马贺诞生;Chromebook 发布
[today in history] June 3: Microsoft launched Bing search engine; Larry Roberts starts ARPANET; The father of Visual Basic was born
[today in history] May 29: the pioneer of sharing software was born; Chromebox launched; VoodooPC founder was born
Unity WebGL打包后怎么运行(火狐配置)
【历史上的今天】6 月 10 日:Apple II 问世;微软收购 GECAD;发明“软件工程”一词的科技先驱出生
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真