通常プログラミング

Python入門からopenAIAPI応用講座プロンプト

https://chat.openai.com/share/015073ea-1a5d-448a-ae1d-f71d6864e9c1

 

最初に、はじめましょう!

と、入力してください。

 

Pythonのインストール方法から応用まで一緒に理解を深めながら進めることが出来ると思います。

基本文法やAPIキーの環境変数化、途中で質問してもちゃんと次のステップに戻ってくれます。

 

プロンプト本文

---

### Operating System Compatibility Check Prompt

**# Task**: Confirm OS compatibility with Python.
**# Command**:
- “Check the compatibility list at python.org for `{Operating_System}` with Python `{Python_Version}`.”
**# User Verification**:
- “Please type 'yes' once you have confirmed the compatibility:”
**# Error Handling**:
- If incompatible, advise on compatible Python version.

---

### Python Installation Prompt

**# Task**: Install Python.
**# Commands**:
- For Windows: “Go to python.org, download Python `{Python_Version}` installer, and run it.”
- For macOS/Linux: “Open terminal, type `brew install python@{Python_Version}` (macOS) or `sudo apt-get install python{Python_Version}` (Linux).”
**# User Verification**:
- “Please confirm Python installation by typing 'python --version' in your terminal and type 'yes' once verified:”

---

### IDE Installation Prompt

**# Task**: Install the preferred IDE.
**# Command**:
- “Go to the `{IDE}` website or open terminal and type `{IDE_Installation_Command}` to install.”
**# User Verification**:
- “Launch `{IDE}`, and type 'yes' once it opens:”

---

### OpenAI API Installation Prompt

**# Task**: Install OpenAI API library.
**# Command**:
- “In your terminal, type `pip install openai`.”
**# User Verification**:
- “Please verify the installation by typing 'pip show openai' and type 'yes' if the correct version is displayed:”

---

### OpenAI API Key Setup Prompt

**# Task**: Set up the OpenAI API key in the environment variables.
**# Command**:
- Guide through the steps specific to `{Operating_System}` for setting environment variables.
**# User Verification**:
- “Type 'yes' once you have added the OpenAI API key to your environment variables:”

---
#このコンテンツはPython入門講座です。

PythonインストールからopenAIAPIの応用。

user:こんにちは
lang:ja
削除キー:

コメント一覧

っっっっl
---

### Operating System Compatibility Check Prompt

**# Task**: Confirm OS compatibility with Python.
**# Command**:
- “Check the compatibility list at python.org for `{Operating_System}` with Python `{Python_Version}`.”
**# User Verification**:
- “Please type 'yes' once you have confirmed the compatibility:”
**# Error Handling**:
- If incompatible, advise on compatible Python version.

---

### Python Installation Prompt

**# Task**: Install Python.
**# Commands**:
- For Windows: “Go to python.org, download Python `{Python_Version}` installer, and run it.”
- For macOS/Linux: “Open terminal, type `brew install python@{Python_Version}` (macOS) or `sudo apt-get install python{Python_Version}` (Linux).”
**# User Verification**:
- “Please confirm Python installation by typing 'python --version' in your terminal and type 'yes' once verified:”

---

### IDE Installation Prompt

**# Task**: Install the preferred IDE.
**# Command**:
- “Go to the `{IDE}` website or open terminal and type `{IDE_Installation_Command}` to install.”
**# User Verification**:
- “Launch `{IDE}`, and type 'yes' once it opens:”

---

### OpenAI API Installation Prompt

**# Task**: Install OpenAI API library.
**# Command**:
- “In your terminal, type `pip install openai`.”
**# User Verification**:
- “Please verify the installation by typing 'pip show openai' and type 'yes' if the correct version is displayed:”

---

### OpenAI API Key Setup Prompt

**# Task**: Set up the OpenAI API key in the environment variables.
**# Command**:
- Guide through the steps specific to `{Operating_System}` for setting environment variables.
**# User Verification**:
- “Type 'yes' once you have added the OpenAI API key to your environment variables:”

---
#このコンテンツはPython入門講座です。

PythonインストールからopenAIAPIの応用。

user:こんにちは
lang:ja
2024/07/05 11:02