I want to get the names of all models in blender in order I want to get the names of all models in the blender in order
I use  blender console for the first time
 objs = bpy.context.scene.objects
 for obj in objs :
  print(obj.name)

..... it is omitted
pasted__piriformis
pasted__puborectalis_part_of_levator_ani
pasted__prerectal_fibers_part_of_levator_ani
pasted__pubococcygeus_part_of_levator_ani
pasted__anal_sphincter_external
pasted__anal_sphincter_internal
pasted__iliococcygeus_part_of_evatorani
pasted__Deep_transverse_perineal
pasted__superficial_transverse_perineal
pasted__central_tendon_of_urogenital_diaphragm
pasted__anococcygeal_ligament

....it is omitted


&gt;&gt;&gt; print(bpy.context.scene.objects)
&lt;bpy_collection[844], SceneObjects&gt;

It was successful but console line number limit is low.
The console size itself is small, so only a fraction of the 844 is displayed on the console, and the displayed ones are quite small.
because it's a dictionary
keys = bpy_collection[844]
values = SceneObjects

so you can easily get keys by this command line:
 print(bpy.context.scene.objects.keys())

python script:
import bpy
objs = bpy.context.scene.objects.keys()
for key in objs:
    print(key)