- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 C++打包成可执行文件,不需要安装,有第三方库OpenCV
由于对接的人要求可执行文件,不是安装程序,所以重新打包了一份,特此记录一下自己学习过程
2023-06-20 14:02:12 1362
原创 IntelliJ IDEA误触 Disable inspection 选项导致错误代码不检查不提示
在使用IntelliJ IDEA时误触,导致错误检查消失了,摸索了很久终于调回初试状态
2023-02-14 21:36:57 1726
Oracle.zip
C#考试报名管理系统:前端使用C#设计界面,使用Oracle.ManagedDataAccess.Client连接Oracle数据库;
if (radioButton1.Checked == true)
{
String user = textBox1.Text.Trim();
String password = textBox2.Text.Trim();
if (user == "")
{
MessageBox.Show("用户名不能为空,请重新输入!!", "Error");
radioButton1.Checked = false;
}
else if (password == "")
{
MessageBox.Show("密码不能为空,请重新输入!!", "Error");
radioButton1.Checked = false;
}
else
{
conn.Open();
OracleCommand myCommand = conn.CreateCommand();
myCommand.CommandText = "select ad_password from admin_ where ad_user = '" + user + "'";
//myCommand.Parameters.Add(new OracleParameter(":user",user));
//myCommand.Parameters.Add(new OracleParameter(":password", password));
//OracleDataReader reader = myCommand.ExecuteReader();
myCommand.Connection = conn;
if (myCommand.ExecuteScalar() != null && myCommand.ExecuteScalar().Equals(password) == true)
{
this.Hide();
Form5 form = new Form5();
form.Show();
//textBox3.Text = myCommand.ExecuteScalar().ToString();
}
else
{
MessageBox.Show("登录信息错误,请重新填写!!", "Error");
radioButton1.Checked = false;
textBox1.Text = "";
textBox2.Text = "";
}
conn.Close();
}
}
2020-04-20
Sprider.py
爬取某牙直播平台某专栏的直播人数数据,代码复用性高
def __analysis(self,htmls):
root_htmls = re.findall(Sprider.list_pattern,htmls)
anchors = []
for html in root_htmls:
name = re.findall(Sprider.name_pattern,html)
number = re.findall(Sprider.number_pattern,html)
anchor = {'name':name,'number':number}
anchors.append(anchor)
return anchors
2020-04-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人