Inclusion Criteria:  Participate voluntarily and sign the subject informed consent before the test. Patients with type 2 diabetes, aged 18-75 years, meeting the diagnostic criteria of WHO1999, have not been treated with any hypoglycemic drugs. No acute complications such as diabetic ketoacidosis and diabetic hyperosmolar syndrome. Subjects are able and willing to undergo FGM examination, diet and exercise regularly.  Exclusion Criteria:  Patients allergic to insulin. Impaired liver and renal function, ALT 2.5 times higher than the upper limit of normal value;Serum creatinine was 1.3 times higher than the upper limit of normal. A history of drug abuse and alcohol dependence within the past 5 years. Systemic hormone therapy was used in recent 3 months. Patients with poor compliance and irregular diet and exercise. Patients with infection and stress within four weeks. Patients who cannot tolerate flash glucose mornitoring(FGM). Patients who are pregnant, nursing or preparing to become pregnant. Any other apparent condition or comorption as determined by the investigator, such as severe heart and lung disease, endocrine disease, neurological disease, tumor disease, other pancreatic disease, history of mental illness.