The current code only saves the result of one loop, so the output dictionary contains only one set of key-value pairs whose keys are "values" and whose values are the result of the last loop.
If you want to save the results of each loop to a dictionary, you can use a list inside the loop to store the results of each loop, and then convert the list to a dictionary when the loop is over. For example:
results = []
for i in range(1, 7):
c = c + 1
item = {"值": c}
results.append(item)
dict_result = {"结果": results}
print(dict_result)