Thu May 11 09:33:00 UTC 2023 inscode

上级 734e5a34
......@@ -2,20 +2,21 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"反转后的字符串为: \n"
]
}
],
"source": [
"string = input(\"请输入一个字符串:\")\n",
"reverse_string = string[::-1]\n",
"print(\"反转后的字符串为:\", reverse_string)\n"
"print(\"反转后的字符串为:\", reverse_string)"
]
}
],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册