on the surface of CDs, which brings about two kinds of signal change through competitive complexation, including fluorescence and UV-vis absorption. The probe could detect the Pi with a linear range of 0.01-1 mM with a detection limit of 3.75 μM for the fluorescence signal and a linear range of 0.01-1 mM with a detection limit of 4.38 μM for the colorimetric signal. And the change in absorption signal can be used to visually detect Pi. Furthermore, the proposed sensing system was successfully applied to determine Pi in practical water samples.