{ "cells": [ { "cell_type": "code", "execution_count": 3, "id": "57b5e5ef-3fd5-434c-abf3-670e757d8e3d", "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(\"┗━━━━━┻━━━━━┛\")" ] }, { "cell_type": "code", "execution_count": 6, "id": "e019e298-74eb-4184-bd49-1c69b4b3f0a1", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "┏━━━━━┳━━━━━┓\n", "┃\u001b[32m赵德柱\u001b[0m┃90.67┃\n", "┣━━━━━╋━━━━━┫\n", "┃\u001b[32m黄金花\u001b[0m┃99.56┃\n", "┗━━━━━┻━━━━━┛\n" ] } ], "source": [ "name1 =\"赵德柱\"\n", "name2 =\"黄金花\"\n", "score1 =90.67\n", "score2 =99.56\n", "print(\"┏━━━━━┳━━━━━┓\")\n", "print(F\"┃\\033[32m{name1}\\033[0m┃{score1}┃\")\n", "print(\"┣━━━━━╋━━━━━┫\")\n", "print(F\"┃\\033[32m{name2}\\033[0m┃{score2}┃\")\n", "print(\"┗━━━━━┻━━━━━┛\")" ] }, { "cell_type": "code", "execution_count": 7, "id": "b1e99b8e-f518-482b-9810-fca511b7a316", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "┏━━━━━┳━━━━━┓\n", "┃\u001b[33m赵德柱\u001b[0m┃90.67┃\n", "┣━━━━━╋━━━━━┫\n", "┃\u001b[33m黄金花\u001b[0m┃99.56┃\n", "┗━━━━━┻━━━━━┛\n" ] } ], "source": [ "name1 =\"赵德柱\"\n", "name2 =\"黄金花\"\n", "score1 =90.67\n", "score2 =99.56\n", "print(\"┏━━━━━┳━━━━━┓\")\n", "print(F\"┃\\033[33m{name1}\\033[0m┃{score1}┃\")\n", "print(\"┣━━━━━╋━━━━━┫\")\n", "print(F\"┃\\033[33m{name2}\\033[0m┃{score2}┃\")\n", "print(\"┗━━━━━┻━━━━━┛\")" ] }, { "cell_type": "code", "execution_count": 8, "id": "e1c0bba1-c67a-4f0c-bf55-75c9a265ac08", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "┏━━━━━┳━━━━━┓\n", "┃\u001b[34m赵德柱\u001b[0m┃90.67┃\n", "┣━━━━━╋━━━━━┫\n", "┃\u001b[35m黄金花\u001b[0m┃99.56┃\n", "┗━━━━━┻━━━━━┛\n" ] } ], "source": [ "name1 =\"赵德柱\"\n", "name2 =\"黄金花\"\n", "score1 =90.67\n", "score2 =99.56\n", "print(\"┏━━━━━┳━━━━━┓\")\n", "print(F\"┃\\033[34m{name1}\\033[0m┃{score1}┃\")\n", "print(\"┣━━━━━╋━━━━━┫\")\n", "print(F\"┃\\033[35m{name2}\\033[0m┃{score2}┃\")\n", "print(\"┗━━━━━┻━━━━━┛\")" ] }, { "cell_type": "code", "execution_count": null, "id": "887f7383-444f-4040-a564-b653a3172def", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "raw", "id": "c575451b-4d11-4cf4-9e6b-029bd01060c9", "metadata": {}, "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 }