{ "cells": [ { "cell_type": "code", "execution_count": 3, "id": "03fe32c4-b74f-401c-8dde-7a9146146123", "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": 5, "id": "f25d71cd-f467-451f-ab8b-1f0e37c5848a", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "┏━━━━━━┳━━━━━━┓\n", "┃赵德柱┃ 90.67┃\n", "┣━━━━━━╋━━━━━━┫\n", "┃黄金花┃ 99.56┃\n", "┗━━━━━━┻━━━━━━┛\n" ] } ], "source": [ "name1 = \"赵德柱\"\n", "name2 = \"黄金花\"\n", "score1 = 90.67\n", "score2 = 99.56\n", "print(\"┏━━━━━━┳━━━━━━┓\")\n", "print(F\"┃{name1}┃ {score1}┃\")\n", "print(\"┣━━━━━━╋━━━━━━┫\")\n", "print(F\"┃{name2}┃ {score2}┃\")\n", "print(\"┗━━━━━━┻━━━━━━┛\")" ] }, { "cell_type": "code", "execution_count": null, "id": "c5b7951c-d10a-44f4-9653-5c34245d3553", "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.10.1" } }, "nbformat": 4, "nbformat_minor": 5 }