期刊文献+

Python伪装文件类对象输入输出重定向方法研究 被引量:1

Research on Python Masquerading File Class Object IO Redirection Method
下载PDF
导出
摘要 针对Python程序自动评测过程中被测试程序输入输出流重定向问题进行研究。分析了基于操作系统输入输出重定向方法的缺点与不足,基于Python的动态性提出了Python伪装文件类对象输入输出重定向方法。设计并实现了满足标准输入输出流接口特性的伪装文件对象,在Python程序内部接管输入流和输出流,提高了重定向接口的灵活性,减少磁盘空间占用,严格限制输出流数据尺寸,保障评测过程稳定进行。该方法在实际应用中效果良好。 The paper studies problems about the IO stream redirection in the automatic evaluation of python language programs.Thepaper analyzes and points out shortcomings of the OS-based IO redirection method,and proposes an IO redirection method using python masquerading file class object.The paper designsand implement masquerading file class objectwhich meets the characteristics of standard IO stream interfaces.This object takes over IO streams inside a python program,increases flexibility of the redirection interface,reduces disk space usage,limits the output stream data size strictly,ensures the stability of the automatic evaluationprocess.This method works well in practical applications.
作者 亓雪冬 李霞 QI Xuedong;LI Xia(Information Construction Department,China University of Petroleum(East China),Qingdao,Shandong 266580,China;College of Information and Control Engineering,China University of Petroleum(East China),Qingdao,Shandong 266580,China)
出处 《微型电脑应用》 2020年第6期90-92,共3页 Microcomputer Applications
关键词 PYTHON ONLINE JUDGE 自动测评 输入输出重定向 Python Online judge automatic evaluation IO redirection
  • 相关文献

参考文献5

二级参考文献25

  • 1王珊.数据库课程教学改革:面向21世纪课程教材与国家精品课程[J].中国大学教学,2006(4):14-17. 被引量:39
  • 2中国大学MOOC[EB/OL].http://www.icoursel63.org.
  • 3Andy Kurnia,Andrew Lim,Brenda Cheang.Online Judge[J].Computers & Education.2001(4)
  • 4LIYANAGUNAWARDENA T R. MOOC experience: a participant' s re- flection[J]. ACM SIGCAS Computers and Society, 2014, 44(3) :9 - 14.
  • 5MIKE J, NATHAN G, RUSSELL B. The BOSS online submission and assessment system[ J]. ACM Journal on Educational Resources in Computing, 2005, 5(3) : 1 -28.
  • 6COLIN H, PAVLOS S, ATHANASIOS T. The marking system for CourseMaster[ J]. ACM SIGCSE Bulletin, 2002, 34(3) : 46 - 50.
  • 7JONES E L. Grading student programs - a software testing approach[ J]. Journal of Circuits. Systems. and Comouters. 2001, 16(2):185-192.
  • 8GOREL HEDIN. Extensible intraprocedural flow analysis at the ab- stract syntax tree level [ J]. Science of computer programming, 2013, 78(10) : 1809 - 1816.
  • 9YAMAGUCHI F, LOTTMANN M. Generalized vulnerability extrapolation using abstract syntax trees[ C]// Proceedings of the 28th Annual Computer Security Applications Conference. New York: ACM, 2012:359-368.
  • 10YE J. Multicriteria decision-making method using the Dice similarity measure between expected intervals of trapezoidal fuzzy numbers[ J]. Joumal of Decision Systems, 2012, 21(4):307 -317.

共引文献232

同被引文献5

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部