Article in English: If you have a PS3 for which you would normally use your controller, turn it off and unplug it to prevent accidentally turning it on while you pair the controller with your Mac. Using a bent paperclip, press the recessed Reset button that's on the bottom of your controller. This will prevent the controller from running into issues left over from previous pairings. This step is optional, but highly recommended. Click the Apple logo in the top-left corner of the screen. A drop-down menu will appear. It's in the drop-down menu. This will open the System Preferences window. It's the Bluetooth icon in the middle of the System Preferences menu. If you don't see this option, click the ⋮⋮⋮⋮ button to return to the main System Preferences menu. This button is on the left side of the page. Doing so enables your Mac's Bluetooth. If this button reads Turn Bluetooth Off instead, Bluetooth is already enabled. Attach the small end of the charger cable that came with your PS3 controller to the controller's charging port, then plug the other end into your Mac's USB port. If your Mac uses USB-C ports (ovals) instead of USB 3.0 ports (rectangles), you'll need to buy a USB 3.0 to USB-C adapter for your Mac before you can do this. You can find them on Amazon and in tech department stores. If the controller hasn't been charged for a while, you may want to let it charge for about 30 minutes before proceeding with setting up the Bluetooth connection. It's in the middle of the controller. Doing so will prompt the lights on the top of the controller to begin flashing. The PS3 controller will appear in the list as "Connected" after a few seconds. If your Mac prompts you for the device's passcode, type 0000 and then click Pair. This usually isn't required on newer Macs. Now that the PS3 controller is connected to your computer via Bluetooth, you can use it in any game that supports gamepads. You may have to manually set the controller buttons for game functions; this varies from game to game.

Summary in Chinese:
关闭电源，拔掉PS3。 复位手柄。 打开苹果菜单。 点击系统偏好设置…。 点击蓝牙。 点击打开蓝牙。 将PS3手柄连接到Mac上。 必要时给手柄充电。 按住PlayStation按钮2秒钟。 拔掉手柄的电缆，等待同步。 出现提示时，输入密码0000。 设置游戏中的手柄。 完成。