In order to meet the daily replenishment and pricing needs of fresh supermarkets,based on the sales flow details and wholesale prices of six vegetable categories distributed by a supermarket from July 1,2020 to June 30,2023,the Apriori algorithm and K-means++algorithm were used to study the sales time distribution patterns of various fresh vegetables and the correlation between consumer purchases of various fresh vegetables,Furthermore,providing a new perspective for the strategic formulation of fresh supermarkets from the perspective of the correlation and correlation between the sales and purchases of vegetable types.