In one-dimensional (1D) Laser plasma interaction simulation via Particle In Cell code (LPIC), a time-step averaged method is proposed to solve the particle weight assignment in different positions near the grid according to the effective residence time of particles. The current density in the grid distribution direction (laser propagation x direction) is calculated by the current continuity equation, and in the vertical (y, z) direction , the average density of particles is calculated by the time-step averaged method, and then the current density is calculated by Jy= ρyy and Jz= ρvz in 1D LPIC program. In the case of first-order weight distribution of particle cloud, the current density obtained by this method is consistent with the first-order current density of most LPIC codes.