有人让我成为了一个GUI,但我仍然不明白一些东西:
text_1
print text_1.text()
^
SyntaxError: invalid syntax
中的内容时出现语法错误?public DataTable Load_to_DataGrid(string Line_ID) { con.ConnectionString = ConfigurationManager.ConnectionStrings[1].ConnectionString; com = new SqlCommand("LoadPoints_ToGrid", con); com.CommandType = CommandType.StoredProcedure; com.Parameters.Add(new SqlParameter("@Line_ID", Line_ID)); com.Parameters.Add("@outp", SqlDbType.NVarChar,40000).Direction = ParameterDirection.Output; SqlDataAdapter sda = new SqlDataAdapter(com); DataTable dt = new DataTable(); sda.Fill(dt); return dt; }