安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

Python Program to Read and Display Student Data

  • 日期: 2026-07-28
  • 标签: 常规

name = '' id_num = '' mark = 0

while True: user_input = input('Type in name;id;mark or Q to stop: ') if user_input == 'Q': break else: data = user_input.split(';') name = data[0] id_num = data[1] mark = int(data[2]) print('Name: {} ID: {} Mark: {}'.format(name, id_num, mark))

Python Program to Read and Display Student Data

原文地址: https://www.cveoy.top/t/topic/oZUQ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: 人工智能赋能智慧能源:未来发展趋势及应用场景
  • 下一篇: 建国大业电影剧情简介:从辛亥革命到新中国成立

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2