From 96787989f6c6b4b48f89d62179b904890c6552f5 Mon Sep 17 00:00:00 2001 From: hayashisoma Date: Fri, 20 Dec 2024 01:53:05 +0900 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC171=E5=95=8F=E3=81=AE=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=81=A8=E3=81=9D=E3=81=AE=E8=A7=A3=E7=AD=94=E4=BE=8B?= =?UTF-8?q?=E3=82=92=E8=A8=98=E5=85=A5=E3=81=97=E3=81=9F=E3=80=82Colab=20?= =?UTF-8?q?=E3=82=92=E4=BD=BF=E7=94=A8=E3=81=97=E3=81=A6=E4=BD=9C=E6=88=90?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=BE=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Prog2_11.ipynb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Prog2_11.ipynb b/Prog2_11.ipynb index b016633..5a6e320 100644 --- a/Prog2_11.ipynb +++ b/Prog2_11.ipynb @@ -23,7 +23,7 @@ "colab_type": "text" }, "source": [ - "\"Open" + "\"Open" ] }, { @@ -4035,7 +4035,9 @@ "第171問\n", "次の問題に答えなさい\n", "\n", - "(ここから以降に自作問題を書いてください)" + "(ここから以降に自作問題を書いてください)\n", + "\n", + "5行4列の二次元配列aを生成しなさい。ただし、ただし要素は1~99の整数型乱数とする。" ] }, { @@ -4044,7 +4046,10 @@ "id": "IE3zz6fmCuL4" }, "source": [ - "# ここに自作問題の回答(pythonプログラム)を書いてください" + "# ここに自作問題の回答(pythonプログラム)を書いてください\n", + "import numpy as np\n", + "a=np.random.randint(0,99,(6,5))\n", + "print(a)" ], "execution_count": null, "outputs": []