Patients must meet all of the following inclusion criteria before they can be enrolled in this trial:  Age ≥ 18 years  Histologically and genomically confirmed locally advanced or metastatic malignant solid tumors with KRAS p.g12c mutation.  A. For patients with NSCLC, previous first-line treatment based on platinum failed; B. For patients with colorectal cancer, at least two-line systemic treatment regimens have been experienced previously（Patients with colorectal cancer and high microsatellite instability must receive at least nivolumab or pembrolizumab if clinically applicable） C. Patients with solid tumors other than NSCLC or colorectal cancer should have received systematic treatment at least once.  It can provide core or excised biopsy tissue from archival tissue samples or newly obtained tumor lesions（Expansion phase only） According to recist1.1 standard, there are measurable or evaluable tumor lesions performance status，PS≤1 Estimated survival time > 3 months QTcF ≤ 470 msec It has a good level of organ function A. Bone marrow function needs to meet：ANC≥1.5×109/L；PLT≥100×109/L；Hb≥9g/dL B. renal function：Cr≤1.5 times the upper limit of normal value；or Creatinine clearance≥50ml/min C. liver function：total bilirubin<1.5 x ULN（For subjects with documented Gilbert syndrome,< 2.0 x ULN or subjects with indirect bilirubin levels suggesting a source of extrahepatic elevation<3.0 x ULN）；ALT and AST≤ 2.5 x ULN（If liver metastasis occurs≤ 5 x ULN）；Alkaline phosphatase < 2.0 x ULN (if there is liver or bone metastasis, < 3.0 x ULN) D. Coagulation function：Prothrombin time (PT) or partial thromboplastin time (PTT) < 1.5 x upper normal limit (ULN), or international normalized ratio (INR) < 1.5 or within the target range (if preventive anticoagulant therapy is performed） The elution period of macromolecular drugs is ≥ 4 weeks, and that of oral fluorouracil and small molecule targeted drugs is ≥ 2 weeks Fertile women must have a negative blood pregnancy test within 72 hours before receiving the first study drug; For fertile men and women, they must be willing to use appropriate contraceptive methods 30 days before the first study drug administration and 120 days after the last study drug administration; Did not participate in the clinical trial as a subject within 1 month before participating in the trial; According to the judgment of the researcher, the compliance is high, willing to complete the test and can abide by the test scheme; Voluntarily participate in this clinical trial, understand the research procedures and be able to sign the informed consent in writing.  Patients with any of the following items cannot be enrolled in this study:  Untreated patients with active brain metastases (except those with treated or asymptomatic brain metastases); Other malignant tumors in recent five years. Basal cell carcinoma of the skin, except squamous cell carcinoma of the skin or cervical carcinoma in situ after potential treatment; Myocardial infarction, symptomatic congestive heart failure (New York Heart Association > grade II), unstable angina pectoris or arrhythmia requiring drug treatment occurred within 6 months before enrollment Have a history of gastrointestinal diseases or gastric surgery or inability to swallow oral drugs Active infection requiring treatment Patients with active hepatitis B (hepatitis B surface antigen and / or hepatitis B core antibody positive and HBV-DNA > 103 copies /mL or 200IU/mL) or hepatitis C patients (hepatitis C virus positive and / or HCV-RNA positive) or HIV positive patients are required to receive treatment. Major organ surgery (excluding puncture biopsy) or significant trauma within 4 weeks before the first use of the study drug, or elective surgery during the trial, or therapeutic or palliative radiotherapy within 2 weeks before the first use of the study drug Allergic constitution, or known history of allergy to this drug component According to the researchers' judgement, there are serious diseases that may endanger the safety of patients or affect the completion of research, such as uncontrollable hypertension, uncontrollable diabetes and thyroid diseases. CYP3A4 or P-gp strong inhibitors were used within 14 days before study enrollment There is third space effusion that cannot be controlled by drainage or other methods (such as massive pleural effusion and ascites) Have a clear history of neurological or mental disorders The researchers believe that the subjects are not suitable to participate in this study for other reasons  In case of one or more of the following circumstances, the subject shall suspend the test:  Subjects asked to withdraw from the study; Imaging evidence shows that the disease is progressing Pregnancy events occurred during the study After dose adjustment, the subject still could not tolerate the toxicity The researcher considers it necessary to withdraw from the study