본문 바로가기
반응형

인공지능 AI6

ChatGPT 웹 페이지의 스크린샷을 사용하여 HTML + CSS 코드 작성 스크린샷을 사용하여 HTML과 CSS 코드를 작성하는 방법 웹 페이지의 스크린샷을 저장한 후 drop&drag를 이용하여 웹 페이지에 구성되는 HTML과 CSS 코드를 만들어줍니다. 프로토타입으로 뭔가 퀵 하게 만들때 매우 편리해 보입니다. [준비물] 1. Visual Studio Code https://code.visualstudio.com/ 2. Docker Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free .. 2023. 12. 7.
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.
반응형