tubeCoding
Python
Java demo
한국어(ko)
English(en)
한국어(ko)
로그인
회원가입
새 파일
CSV 파일 추가
파일 이름
취소
파일 생성
코드 실행
해당 파일은 텍스트 편집기에서 표시할 수 없습니다.
콘솔 출력
[{"type": "TextFile", "filename": "main.py", "content": "import matplotlib.pyplot as plt\r\n# \uc608\uc2dc \ub370\uc774\ud130 (\ucd5c\uadfc 5\uc77c\uac04 \ud3c9\uade0 \uae30\uc628)\r\ndates = [\"7/1\", \"7/2\", \"7/3\", \"7/4\", \"7/5\"]\r\ntemps = [27.3, 28.1, 30.0, 31.2, 29.5]\r\n# \ucf58\uc194 \ucd9c\ub825\r\nfor d, t in zip(dates, temps):\r\n print(f\"{d} \ud3c9\uade0\uae30\uc628: {t}\u2103\")\r\n#\uadf8\ub798\ud504 \uc2dc\uac01\ud654\r\nplt.plot(dates, temps, marker='o', color='skyblue')\r\nplt.title(\"\ucd5c\uadfc 5\uc77c\uac04 \ud3c9\uade0\uae30\uc628 \ubcc0\ud654\")\r\nplt.xlabel(\"\ub0a0\uc9dc\")\r\nplt.ylabel(\"\uae30\uc628(\u2103)\")\r\nplt.grid(True)\r\nplt.show()", "locked": true}]