全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...

基于Linux的图形使用者界面火车售票系统
GUI Train Ticket System Based on Linux System

DOI: 10.12677/CSA.2021.1110252, PP. 2478-2495

Keywords: Linux系统,Socket网络编程,Android,TCP/IP,python爬虫
Linux System
, Socket, Android, TCP/IP, Web Scraping with Python

Full-Text   Cite this paper   Add to My Lib

Abstract:

本文阐述了一款基于Linux操作系统与Android相结合的火车售票系统。在Linux上使用C语言进行服务端的编写,通过GCC、Makefile对代码进行编译,并利用GDB和tcpdump调试工具进行调试程序,同时使用Linux系统上的pycharm软件进行python爬虫的编写,对12306网站的车票进行爬取。此外,使用Windows系统上的Android studio软件对安卓APP进行编程,将Linux服务端通过socket通信与安卓APP进行通信。最后实现了一个服务端、多个客户端的火车售票系统,其具有爬取12306网站的车票信息、登录/注册账号、用户买票/退票/改签、管理员修改车票/用户信息等功能。
This paper describes a GUI train ticket system based on Linux system via combining Linux with Android. The related program of the server is written on Linux through C language, the code is compiled through GCC and Makefile, and the program is debugged by GDB and tcpdump. Meanwhile, the software named pycharm from Linux is utilized to compile python in order to scrap the ticket information of the 12306 website. Besides, an APP, compiled by Android Studio from Windows, communicates with Linux server through socket. Therefore, a GUI train ticket system with a server and multiple clients is realized. It has functions that include crawling the ticket information of the 12306 website, logging in/registering an account, buying/refunding/changing tickets, and modifying the ticket/user information by the administrator.

References

[1]  W. Richard Stevens, Stephen A. Rago. UNIX环境高级编程: 影印版[M]. 第2版. 尤晋元, 张亚英, 戚正伟, 译. 北京: 人民邮电出版社, 2019.
[2]  杜华. Linux编程技术详解[M]. 北京: 人民邮电出版社, 2007.
[3]  黄梓昂, 马殿光, 唐厚君. 基于μCOS的多轴运动控制器的通信模型[J]. 测控技术, 2019, 38(1): 136-139+148.
[4]  赵宏, 朱忠政, 孔东一. Linux系统教学中关于套接字文件的解析[J]. 软件, 2020(9): 33-35.
[5]  韩旭, 王娣. C语言从入门到精通[M]. 第4版. 北京: 清华大学出版社, 2019.
[6]  包晓安, 聂凡杰, 徐璐, 张娜, 吴彪. 基于Reactor与非阻塞IO的服务端框架设计与实现[J]. 浙江理工大学学报(自然科学版), 2020, 43(4): 520-526.
[7]  郭霖. 第一行代码——Android [M]. 第2版. 北京: 人民邮电出版社, 2016.
[8]  Ed Burnette (2008) Hello, Android. Prag-matic Bookshelf, Dallas.
[9]  袁国忠. Python编程从入门到实践[M]. 北京: 人民邮电出版社, 2016.
[10]  崔庆才. Python3网络爬虫开发实战[M]. 北京: 人民邮电出版社, 2018.
[11]  吴向峰, 王景中, 江继军. GNOME/GTK + 编程宝典[M]. 北京: 电子工业出版社, 2000.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133