User 클래스
다음 프롬프트를 사용하여 User라는 새 클래스를 생성합니다.
예시 #1
User 클래스 생성
일반적인 프롬프트
Create a class call User
add first_name, last_name, age, email, phone, login_attempts, and password attributesPython 프롬프트
VSCode에서 파일을 생성하고 이름을 user_class.py로 지정하고 다음 코드를 입력합니다.
"""
Create a class call User
add first_name, last_name, age, email, phone, login_attempts, and password attributes
"""제안을 수락하려면 Enter 키를 계속 누릅니다. Amazon Q Developer가 다음 코드를 생성합니다.
예시 #2
User 클래스 계속해서 생성
Enter 키를 계속 누르면 Amazon Q Developer가 계속해서 클래스를 추가/생성합니다.
일반적인 프롬프트
Python 프롬프트
코드 제안의 끝으로 가서 Enter 키를 누릅니다. 그러면 Amazon Q Developer가 클래스에 다음 코드를 추가할 것입니다.
현재 코드:
Last updated