반응형 인공지능5 ChatGPT - 파이썬 flask연동 리스트 출력 [질문] 파이썬으로 웹사이트 만들어줘 내용은 hello world 찍어줘 Make a website with Python. The content is, "Hello world". Please film it. [답변] As an AI language model, I do not have the ability to film videos. However, I can provide you with the code to create a basic "Hello World" website using Python and Flask: First, make sure you have Flask installed. You can do this by running the command: pip install flask Crea.. 2023. 2. 14. ChatGPT - 파이썬 Postgresql 연결 및 리스트 [질문] 파이썬으로 postgresql 연결해서 테이블에 있는 데이터를 뿌려줘 Connect postgresql with Python and spray the data on the table. # PostgreSQL 서버에 연결합니다. conn = psycopg2.connect( host="호스트 주소", database="데이터베이스 이름", user="사용자 이름", password="비밀번호" ) # 커서를 생성합니다. cur = conn.cursor() # 쿼리를 실행합니다. cur.execute("SELECT * FROM 테이블 이름") # 결과를 가져옵니다. rows = cur.fetchall() # 결과를 출력합니다. for row in rows: print(row) # 연결을 닫습니다. c.. 2023. 2. 14. ChatGPT - 파이썬 이메일발송 파이썬 이메일전송 ChatGPT를 활용하여 파이썬으로 이메일전송 프로그램을 만들려고 한다. [질문] 파이썬으로 이메일 보내기 위한 샘플 코드를 만들어주세요. [답변] Sure, here's a sample code for sending an email using Python. You will need to have a valid email account and SMTP server details to use this code. import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart sender_email = "sender_email@example.com" receiver_email =.. 2023. 2. 14. ChatGpt - 파이썬 크롤링 ChatGpt란? ChatGPT는 대화 방식으로 상호 작용하는 OpenAI 에서 훈련된 고급 AI 챗봇입니다.대화 형식을 통해 ChatGPT는 후속 질문에 답하고, 실수를 인정하고, 잘못된 전제에 이의를 제기하고, 부적절한 요청을 거부할 수 있습니다. 오늘은 ChatGpt를 이용해서 1도 모르는 파이썬을 가지고 웹사이트를 크롤링하는 프로그램을 만들어 볼까 합니다. 1. chatGpt 가입 https://openai.com/blog/chatgpt/ ChatGPT: Optimizing Language Models for Dialogue We’ve trained a model called ChatGPT which interacts in a conversational way. The dialogue format.. 2023. 2. 14. 이전 1 2 다음 반응형