How to rotate an object in my setting postion along z-axis in python?
sorry that I have worked it out. The code can be:

def animationImages(path, num):

    model = bpy.data.objects[0]
    print(model)
    model.rotation_mode = 'XYZ'
    images_path = path

    x_radi = bpy.context.object.rotation_euler[0]
    y_radi = bpy.context.object.rotation_euler[1]

    image_index = 1
    for radi in np.linspace(0, 2*math.pi, num, endpoint = False):
        model.rotation_euler = (x_radi, y_radi, radi)
        image_save_path = "{}/{}.png".format(images_path, image_index)

        bpy.context.scene.render.filepath = image_save_path
        bpy.ops.render.render(write_still=True, use_viewport=True)

        image_index += 1
    return

images_path = r'M:\RenderedModels\images'
num_images = 99

animationImages(images_path, num_images)