class Shape {}private protocol Printable { func Print()}extension Shape: Printable { func Print() { //具体实现 print("shape print") }}let shape = Shape()shape.Print()