{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "ca74d57f-8153-4cc9-ae32-35b211bd36db", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "┏━━━━━━┳━━━━━━┓\n", "┃\u001b[31m赵德柱\u001b[0m ┃ 90.67┃\n", "┣━━━━━━╋━━━━━━┫\n", "┃\u001b[31m黄金花 \u001b[0m┃ 99.56┃\n", "┗━━━━━━┻━━━━━━┛\n" ] } ], "source": [ "name1 = \"赵德柱\"\n", "name2 = \"黄金花\"\n", "score1 = 90.67\n", "score2 = 99.56\n", "print(\"┏━━━━━━┳━━━━━━┓\")\n", "print(F\"┃\\033[31m{name1}\\033[0m ┃ {score1}┃\")\n", "print(\"┣━━━━━━╋━━━━━━┫\")\n", "print(F\"┃\\033[31m{name2} \\033[0m┃ {score2}┃\")\n", "print(\"┗━━━━━━┻━━━━━━┛\")\n" ] }, { "cell_type": "code", "execution_count": null, "id": "d1b530a9-0890-46a7-9b46-1d677c98c6aa", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.13" } }, "nbformat": 4, "nbformat_minor": 5 }