Thu May 11 09:07:00 UTC 2023 inscode

上级 bee4e20c
......@@ -6,6 +6,17 @@
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"string = input(\"请输入一个字符串:\")\n",
"reverse_string = string[::-1]\n",
"print(\"反转后的字符串为:\", reverse_string)\n"
]
}
],
"metadata": {
......@@ -15,8 +26,16 @@
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"version": "3.9.5 (default, Nov 23 2021, 15:27:38) \n[GCC 9.3.0]"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
},
"orig_nbformat": 4,
"vscode": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册