To create a Python Flask API with Swagger/OpenAPI documentation, you can use the following steps:

1. Install required packages:
```bash
pip install flask flask-sqlalchemy flask-restplus
```

2. Create a new file `app.py` and add the following code to set up the basic structure of the application:

```python
from flask import Flask
from flask_restplus import Api, Resource

app = Flask(__name__)
api = Api(app)

if __name__ == '__main__':
    app.run(debug=True)
```

3. Define your SQLite database model using SQLAlchemy ORM:

```python
from flask_sqlalchemy import SQLAlchemy

app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///records.db'
db = SQLAlchemy(app)

class Record(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(100), nullable=False)
    value = db.Column(db.Float, nullable=False)

    def __repr__(self):
        return f"Record('{self.name}', '{self.value}')"
```

4. Add CRUD operations as endpoints in the API:

```python
record_ns = api.namespace('records', description='Operations related to records')

@record_ns.route('/')
class RecordList(Resource):
    @api.doc('list_records')
    def get(self):
        '''List all records'''
        pass

    @api.doc('create_record')
    def post(self):
        '''Create a new record'''
        pass

@record_ns.route('/<int:id>')
@api.response(404, 'Record not found')
class RecordItem(Resource):
    @api.doc('get_record')
    def get(self, id):
        '''Fetch a record given its identifier'''
        pass

    @api.doc('update_record')
    def put(self, id):
        '''Update a record given its identifier'''
        pass

    @api.doc('delete_record')
    def delete(self, id):
        '''Delete a record given its identifier'''
        pass
```

5. Implement the CRUD operations using SQLAlchemy:

```python
from flask import request

@api.response(400, 'Bad Request')
class RecordList(Resource):
    # ...
    def get(self):
        records = Record.query.all()
        return [{'id': r.id, 'name': r.name, 'value': r.value} for r in records], 200

    def post(self):
        data = request.get_json()
        if not data or 'name' not in data or 'value' not in data:
            return {'message': 'Invalid input'}, 400

        new_record = Record(name=data['name'], value=data['value'])
        db.session.add(new_record)
        db.session.commit()

        return {'id': new_record.id}, 201

class RecordItem(Resource):
    # ...
    def get(self, id):
        record = Record.query.get(id)
        if not record:
            return {'message': 'Record not found'}, 404

        return {'id': record.id, 'name': record.name, 'value': record.value}, 200

    def put(self, id):
        data = request.get_json()
        if not data or 'name' not in data or 'value' not in data:
            return {'message': 'Invalid input'}, 400

        record = Record.query.get(id)
        if not record:
            return {'message': 'Record not found'}, 404

        record.name = data['name']
        record.value = data['value']
        db.session.commit()

        return {'message': 'Record updated successfully'}, 200

    def delete(self, id):
        record = Record.query.get(id)
        if not record:
            return {'message': 'Record not found'}, 404

        db.session.delete(record)
        db.session.commit()

        return {'message': 'Record deleted successfully'}, 200
```

6. Run the application:

```bash
python app.py
```

Now you have a Python Flask API with Swagger/OpenAPI documentation that provides endpoints for creating, reading, updating, and deleting records in a SQLite database. The API handles errors gracefully and returns appropriate status codes.

You can access the Swagger UI at `http://localhost:5000/` to interact with your API.
Swagger/OpenAPI 설명서를 사용하여 Python 플라스크 API를 생성하려면 다음 단계를 따르세요.

1. 필요한 패키지를 설치합니다:
```bash
pip install flask flask-sqlalchemy flask-restplus
```

2. `app.py` 파일을 새로 생성하고 다음 코드를 추가하여 애플리케이션의 기본 구조를 설정합니다:

```python
from flask import Flask
from flask_restplus import Api, Resource

app = Flask(__name__)
api = Api(app)

if __name__ == '__main__':
    app.run(debug=True)
```

3. SQLAlchemy ORM을 사용하여 SQLite 데이터베이스 모델을 정의합니다:

```python
from flask_sqlalchemy import SQLAlchemy

app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///records.db'
db = SQLAlchemy(app)

class Record(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(100), nullable=False)
    value = db.Column(db.Float, nullable=False)

    def __repr__(self):
        return f"Record('{self.name}', '{self.value}')"
```

4. API에 CRUD 작업을 엔드포인트로 추가합니다:

```python
record_ns = api.namespace('records', description='Operations related to records')

@record_ns.route('/')
class RecordList(Resource):
    @api.doc('list_records')
    def get(self):
        '''List all records'''
        pass

    @api.doc('create_record')
    def post(self):
        '''Create a new record'''
        pass

@record_ns.route('/<int:id>')
@api.response(404, 'Record not found')
class RecordItem(Resource):
    @api.doc('get_record')
    def get(self, id):
        '''Fetch a record given its identifier'''
        pass

    @api.doc('update_record')
    def put(self, id):
        '''Update a record given its identifier'''
        pass

    @api.doc('delete_record')
    def delete(self, id):
        '''Delete a record given its identifier'''
        pass
```

5. SQLAlchemy를 사용하여 CRUD 작업을 구현합니다:

```python
from flask import request

@api.response(400, 'Bad Request')
class RecordList(Resource):
    # ...
    def get(self):
        records = Record.query.all()
        return [{'id': r.id, 'name': r.name, 'value': r.value} for r in records], 200

    def post(self):
        data = request.get_json()
        if not data or 'name' not in data or 'value' not in data:
            return {'message': 'Invalid input'}, 400

        new_record = Record(name=data['name'], value=data['value'])
        db.session.add(new_record)
        db.session.commit()

        return {'id': new_record.id}, 201

class RecordItem(Resource):
    # ...
    def get(self, id):
        record = Record.query.get(id)
        if not record:
            return {'message': 'Record not found'}, 404

        return {'id': record.id, 'name': record.name, 'value': record.value}, 200

    def put(self, id):
        data = request.get_json()
        if not data or 'name' not in data or 'value' not in data:
            return {'message': 'Invalid input'}, 400

        record = Record.query.get(id)
        if not record:
            return {'message': 'Record not found'}, 404

        record.name = data['name']
        record.value = data['value']
        db.session.commit()

        return {'message': 'Record updated successfully'}, 200

    def delete(self, id):
        record = Record.query.get(id)
        if not record:
            return {'message': 'Record not found'}, 404

        db.session.delete(record)
        db.session.commit()

        return {'message': 'Record deleted successfully'}, 200
```

6. 어플리케이션을 실행합니다:

```bash
python app.py
```

이제 SQLite 데이터베이스에서 레코드를 생성, 읽기, 업데이트 및 삭제하기 위한 엔드포인트를 제공하는 Swagger/OpenAPI 설명서가 포함된 Python 플라스크 API를 갖게 되었습니다. API는 오류를 정상적으로 처리하고 적절한 상태 코드를 반환합니다.

`http://localhost:5000/`에서 Swagger UI에 액세스하여 API와 상호 작용할 수 있습니다.