当前位置:网站首页>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 :
边栏推荐
- What if win11 can't drag an image to the taskbar software to open it quickly
- 【历史上的今天】5 月 29 日:共享软件先驱诞生;ChromeBox 推出;VoodooPC 创始人出生
- 第一次使用gcc和makefile编写c程序
- 榜单首发——前装搭载率站上10%大关,数字钥匙方案供应商TOP10
- Win11不能拖拽图片到任务栏软件上快速打开怎么办
- [today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze
- How to run unity webgl after packaging (Firefox configuration)
- Opencv——几何空间变换(仿射变换和投影变换)
- Step by step interpretation of crf+bilstm code
- 【电梯控制系统】基于VHDL语言和状态机实现的电梯控制系统的设计,使用了状态机
猜你喜欢

如何开启多语言文本建议?Win11打开多语言文本建议的方法
![[today in history] June 10: Apple II came out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word](/img/0d/9f99eb3dcb73c912987b81fba71890.png)
[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

【 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

【历史上的今天】6 月 7 日:Kubernetes 开源版本发布;《魔兽世界》登陆中国;分组交换网络发明者出生

榜单首发——前装搭载率站上10%大关,数字钥匙方案供应商TOP10

树莓派-环境设置和交叉编译

ByteDance Interviewer: how to calculate the memory size occupied by a picture

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

初始线性回归

How does win11 close recently opened projects? Win11 method to close recently opened projects
随机推荐
【电梯控制系统】基于VHDL语言和状态机实现的电梯控制系统的设计,使用了状态机
Livedata interview question bank and answers -- 7 consecutive questions for livedata interview~
【历史上的今天】6 月 17 日:术语“超文本”的创造者出生;Novell 首席科学家诞生;探索频道开播
[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
[today in history] June 12: the United States entered the era of digital television; Mozilla's original developer was born; 3com merges with American Robotics
无心剑汉英双语诗004.《剑》
榜单首发——前装搭载率站上10%大关,数字钥匙方案供应商TOP10
字节跳动面试官:一张图片占据的内存大小是如何计算
在线文本按行批量反转工具
What if win11 can't drag an image to the taskbar software to open it quickly
【模糊神经网络】基于matlab的模糊神经网络仿真
SQL reported an unusual error, which confused the new interns
Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
> Could not create task ‘:app:MyTest. main()‘. > SourceSet with name ‘main‘ not found. Problem repair
Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]
The graduation season is coming, and the number of college graduates in 2022 has exceeded 10 million for the first time
LiveData 面试题库、解答---LiveData 面试 7 连问~
[today in history] June 2: Apple launched swift programming language; China Telecom acquires China Unicom C network; OS X Yosemite release
第三批入围企业公示!年度TOP100智能网联供应商评选
Flutter 使用 CustomPaint 绘制基本图形