当前位置:网站首页>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 :
边栏推荐
- Interview: is bitmap pixel memory allocated in heap memory or native
- [fuzzy neural network] simulation of fuzzy neural network based on MATLAB
- 【历史上的今天】6 月 16 日:甲骨文成立;微软 MSX 诞生;快速傅里叶变换发明者出生
- High reliability application knowledge map of Architecture -- the path of architecture evolution
- Flashtext, a data cleaning tool, has directly increased the efficiency by dozens of times
- Win11如何关闭最近打开项目?Win11关闭最近打开项目的方法
- 【 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
- 把腾讯搬上云:云服务器 CVM 的半部进化史
- Which securities platform is the best and safest for a novice to open a stock trading account
- SQL reported an unusual error, which confused the new interns
猜你喜欢

【二維碼圖像矯正增强】基於MATLAB的二維碼圖像矯正增强處理仿真

被通知裁员后拿到5个offer
![[fuzzy neural network] simulation of fuzzy neural network based on MATLAB](/img/2f/ffe3baf37808b78b2c299aef5a717e.jpg)
[fuzzy neural network] simulation of fuzzy neural network based on MATLAB

CMU提出NLP新范式—重构预训练,高考英语交出134高分

【模糊神经网络】基于matlab的模糊神经网络仿真

Win11新建不了文本文档?Win11右键无法新建文本文档的解决方法
![[inverted pendulum control] Simulink simulation of inverted pendulum control based on UKF unscented Kalman filter](/img/17/3c93ddf8f55c63a97480a78cbf8111.png)
[inverted pendulum control] Simulink simulation of inverted pendulum control based on UKF unscented Kalman filter

如何判断线程池已经执行完所有任务了?

【历史上的今天】5 月 31 日:Amiga 之父诞生;BASIC 语言的共同开发者出生;黑莓 BBM 停运

High reliability application knowledge map of Architecture -- the path of architecture evolution
随机推荐
What if win11 can't drag an image to the taskbar software to open it quickly
MFC CString to LPVOID
【历史上的今天】6 月 5 日:洛夫莱斯和巴贝奇相遇;公钥密码学先驱诞生;函数语言设计先驱出生
Interpretation of bilstm-crf in NER forward_ algorithm
Initial linear regression
math_ (function & sequence) meaning of limit & misunderstanding and symbol sorting / neighborhood & de centring neighborhood & neighborhood radius
【历史上的今天】6 月 12 日:美国进入数字化电视时代;Mozilla 的最初开发者出生;3Com 和美国机器人公司合并
Usage details of staticlayout
CMU提出NLP新范式—重构预训练,高考英语交出134高分
Opencv——几何空间变换(仿射变换和投影变换)
Shuttle uses custompaint to paint basic shapes
【历史上的今天】6 月 23 日:图灵诞生日;互联网奠基人出生;Reddit 上线
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真
第一次使用gcc和makefile编写c程序
【方块编码】基于matlab的图像方块编码仿真
Writing C program with GCC and makefile for the first time
Opencv -- Hough transform and some problems encountered
Get 5 offers after being notified of layoffs
[today in history] May 29: the pioneer of sharing software was born; Chromebox launched; VoodooPC founder was born
[today in history] June 10: Apple II came out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born