Anyons are quasiparticles occurring in two dimensions, whose topological properties are believed to be robust against local perturbations and may hold promise for fault tolerant quantum computing. Here we present an experiment of demonstrating the path independent nature of anyonic braiding statistics with a superconducting quantum circuit, which represents a 7-qubit version of the toric code model. We dynamically create the ground state of the model, achieving a state fidelity of 0.688±0.015 as verified by quantum state tomography. Anyonic excitations and braiding operations are subsequently implemented with single-qubit rotations. The braiding robustness is witnessed by looping an anyonic excitation around another one along two distinct, but topologically equivalent paths: Both reveal the nontrivial π-phase shift, the hallmark of Abelian 1/2 anyons, with a phase accuracy of ∼99% in the Ramsey-type interference measurement.