请编写一个包括前缀、中缀、后缀表达式之间转换的代码片段。


前缀表达式："* + 3 4 5"
以下是Python代码，可以将前缀表达式转换为中缀表达式和后缀表达式：

```python
class Expression:
    def __init__(self, expression: str):
        self.expression = expression.split()
        self.stack = []
        self.operators = set(['+', '-', '*', '/', '^'])

    def prefix_to_infix(self):
        self.expression.reverse()
        for i in self.expression:
            if i in self.operators:
                op1 = self.stack.pop()
                op2 = self.stack.pop()
                self.stack.append(f"({op1} {i} {op2})")
            else:
                self.stack.append(i)
        return self.stack.pop()
    
    def prefix_to_postfix(self):
        self.expression.reverse()
        for i in self.expression:
            if i in self.operators:
                op1 = self.stack.pop()
                op2 = self.stack.pop()
                self.stack.append(f"{op1} {op2} {i}") 
            else:
                self.stack.append(i)
        return self.stack.pop()

exp = "* + 3 4 5"
expression = Expression(exp)

print(expression.prefix_to_infix()) # ((3 + 4) * 5)
print(expression.prefix_to_postfix()) # 3 4 + 5 *
```

注意：此代码只适用于单个数字中不包含空格的运算符的前缀表达式，数字之间用空格分隔。