首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

python毕设基于django就业系统源码.zip

后端 24.11MB 29 需要积分: 1
立即下载

资源介绍:

python毕设基于django就业系统源码.zip,python毕设基于django就业系统源码.zippython毕设基于django就业系统源码.zippython毕设基于django就业系统源码.zip
from django.shortcuts import render,redirect,render_to_response from django.http import HttpResponse from django import forms import pandas as pd # Create your views here. from user.models import * from django.contrib.auth.models import User from django.contrib.auth import authenticate,login,logout from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split #核心算法函数 def forest(list,df): df['job_salary_range'] = df['job_salary_range'].astype(str).map({'0-10K': 0, '10-20K': 1, '20-30K': 2, '>30K': 3}) y = df['job_salary_range'] x = df.drop(labels=['job_salary_range', 'job_name', 'company_name'], axis=1) # 删除掉无关列 x = pd.get_dummies(x) #独热编码 xtrain, xtest, ytrain, ytest = train_test_split(x, y, test_size=0.2, random_state=5) # test_size是x,y测试集占总的20% rfc = RandomForestClassifier(max_depth=None, min_samples_split=2, random_state=0) # 实例化rfc = rfc.fit(xtrain, ytrain) #用训练集数据训练 rfc = rfc.fit(xtrain, ytrain) # result = rfc.score(xtest, ytest) # 导入测试集,rfc的接口score计算的是模型准确率accuracy res = rfc.predict(list) return res def xinzi_predict(request): if request.method == 'GET': return render(request,'predict_xinzi.html') else: list1 = [] list_sum = [] java1 = request.POST.get('java1') #JAVA要求 spring1 = request.POST.get('spring1') sql1 = request.POST.get('sql1') python1 = request.POST.get('python1') #Python要求 linux1 = request.POST.get('linux1') spider1 = request.POST.get('spider1') html1 = request.POST.get('html1') # web要求 cssjs1 = request.POST.get('cssjs1') vue1 = request.POST.get('vue1') jiqi1 = request.POST.get('jiqi1') # 算法工程师要求 tuxiang1 = request.POST.get('tuxiang1') C1 = request.POST.get('C1') city = request.POST.get('city') demand = request.POST.get('demand') guimo = request.POST.get('guimo') a = request.POST.get('job_name') global df #声明全局变量 if a == 'Java开发工程师': list1.append(java1) list1.append(spring1) list1.append(sql1) df = pd.read_csv('C:\\Users\\独为我唱\\Desktop\\data_sum\\updata_java_ceshi222.csv', encoding='gbk') elif a == 'Python开发工程师': list1.append(python1) list1.append(linux1) list1.append(spider1) df = pd.read_csv('C:\\Users\\独为我唱\\Desktop\\data_sum\\updata_python_ceshi.csv', encoding='gbk') elif a == 'web前端开发师': list1.append(html1) list1.append(cssjs1) list1.append(vue1) df = pd.read_csv('C:\\Users\\独为我唱\\Desktop\\data_sum\\updata_web_ceshi.csv', encoding='gbk') elif a == '算法工程师': list1.append(jiqi1) list1.append(tuxiang1) list1.append(C1) df = pd.read_csv('C:\\Users\\独为我唱\\Desktop\\data_sum\\updata_suanfa_ceshi.csv', encoding='gbk') city = city.split(',') list1.extend(city) demand = demand.split(',') list1.extend(demand) guimo = guimo.split(',') list1.extend(guimo) list_sum.append(list1) # 得到双中括号包起来的列表,并且里面的元素都变成了算法可以直接调用的元素 res = forest(list_sum,df) if res[0] == 0: message = '预测薪资范围是每月5-10K' elif res[0] == 1: message = '预测薪资范围是每月10-20K' elif res[0] == 2: message = '预测薪资范围是每月20-30K' else: message = '预测薪资范围是每月在30k以上' return render(request, 'predict_xinzi.html', {'message': message}) def ceshi2(request): return render(request ,'ceshi2.html', { 'name':'all', 'users':['ab','qwe'], 'user_dict':{'k1':'v1', 'k2':'v2'}, 'us':[ {'id':1,'name':'xiaomm','email':'1111@qq.com'}, {'id':2, 'name':'xoapxaopx', 'email':'ssss@163.com'}, ] } ) def job_demand(request): return render(request, 'job_demand_pie_sum.html',) def xinzi_bar(request): return render(request,'xinzi_bar_sum.html') def denglu(request): if request.method == "GET": return render(request, 'zhuce.html') else: name = request.POST.get('username') pwd = request.POST.get('password') test = stu.objects.filter(stuid = name, password = pwd) name = test.values('name')[0]['name'] #通过学号和登录密码查询到学生的姓名 if test: return render(request, 'zhuye.html', {'username': name}) else: error_msg = '用户名或密码错误' return render(request,'zhuce.html',{"error_msg":error_msg}) def zhuce(request): if request.method == "POST": name = request.POST.get("uname") stuid = request.POST.get("stuid") if stu.objects.filter(stuid = stuid): return render(request, 'zhuce.html',{"message": '该账号已存在,请重新注册!'}) aca = request.POST.get("aca") clas = request.POST.get("class") password = request.POST.get("password") age = request.POST.get("age") stu.objects.create(name = name, stuid = stuid, academy= aca, stuclass=clas, age= age,gender=1, password=password ) return render(request, 'zhuce.html',{"msg":'注册成功'}) else: return render(request, "zhuce.html") #总的岗位数量的饼图和柱状图 def pie_bar_test(request): df = pd.read_csv('C:\\Users\\独为我唱\\Desktop\\data_sum\\all.csv', encoding='gbk' , low_memory=False,converters={'work_demand':str}) dd = df.loc[df['job_name'] != '其他职业'] pie_data_index = list(dd['job_name'].value_counts().index) pie_data = list(dd['job_name'].value_counts()) data = [] for i in range(len(pie_data)): dic = {} dic['name'] = pie_data_index[i] dic['value'] = pie_data[i] data.append(dic) return render(request, 'test.html', {"pie_data_index":pie_data_index, "data":data, "pie_data":pie_data, }) #辅助函数,用于主展示屏展示工作要求饼图 def abi_class(list): newlist = [] for ele in list: newlist += ele.split(',') newlist = [x.strip() for x in newlist] # 这两行是为了使原df的工作要求单个呈现以逗号分割 res = dict() for a in set(newlist): res[a] = newlist.count(a) ll = sorted(res.items(), key=lambda item: item[1], reverse=True) # 按从大到小排序每种技能的出现次数 ll = ll[0:6] # 取出list前6个值 return ll def test_pic(request): df = pd.read_csv('C:\\Users\\独为我唱\\Desktop\\data_sum\\all.csv', encoding='gbk' , low_memory=False,converters={'work_demand':str}) # 取出每个城市及其岗位数 job = list(df['company_locale'].value_counts().index) job1 = list(df['company_locale'].value_counts()) #修改成元素为字典的list,以便地图绘制 data2 = [] for i in range(len(job)): dic = {} dic['name'] = job[i] dic['value'] = job1[i] data2.append(dic) # 取出java技能各占比 a = df['work_demand'].str.split() list1 = [] x = a.copy() for i in range(len(x)): if 'Java' in df['job_name'][i]: list

资源文件列表:

基于django就业系统 (1).zip 大约有93个文件
  1. bishe-master/
  2. bishe-master/.idea/
  3. bishe-master/.idea/dataSources.xml 986B
  4. bishe-master/.idea/dataSources/
  5. bishe-master/.idea/dataSources/2473e3dc-b14c-42a4-aa4e-c9461c3d0f9c.xml 65.3KB
  6. bishe-master/.idea/misc.xml 288B
  7. bishe-master/.idea/modules.xml 272B
  8. bishe-master/.idea/testdjango.iml 1.08KB
  9. bishe-master/.idea/vcs.xml 180B
  10. bishe-master/data_sum/
  11. bishe-master/data_sum/all - 副本.csv 27.36MB
  12. bishe-master/data_sum/all.csv 29.55MB
  13. bishe-master/data_sum/all原始.csv 28.07MB
  14. bishe-master/data_sum/buchong_sum.csv 6.17MB
  15. bishe-master/data_sum/hadoop_sum.csv 884.75KB
  16. bishe-master/data_sum/java_sum.csv 9.45MB
  17. bishe-master/data_sum/mm.csv 23.73MB
  18. bishe-master/data_sum/python_sum.csv 2.52MB
  19. bishe-master/data_sum/python_sum(保留学历不限不新增高中).csv 2.52MB
  20. bishe-master/data_sum/updata_java_ceshi222.csv 7.05MB
  21. bishe-master/data_sum/updata_python_ceshi.csv 692.02KB
  22. bishe-master/data_sum/updata_suanfa_ceshi.csv 1.56MB
  23. bishe-master/data_sum/updata_web_ceshi.csv 3.87MB
  24. bishe-master/data_sum/前端_sum(保留学历不限).csv 4.89MB
  25. bishe-master/data_sum/前端_sum.csv 5.7MB
  26. bishe-master/data_sum/数据分析_sum.csv 2.4MB
  27. bishe-master/data_sum/算法_sum.csv 3.8MB
  28. bishe-master/db.sqlite3 396KB
  29. bishe-master/django_test_django_admin_log.sql
  30. bishe-master/manage.py 630B
  31. bishe-master/static/
  32. bishe-master/static/css/
  33. bishe-master/static/css/comon0.css 7.32KB
  34. bishe-master/static/css/predict.css 811B
  35. bishe-master/static/css/zhuce.css 1.6KB
  36. bishe-master/static/font/
  37. bishe-master/static/font/DS-DIGIT.TTF 24.88KB
  38. bishe-master/static/images/
  39. bishe-master/static/images/J.png 16.45KB
  40. bishe-master/static/images/bg.jpg 252.24KB
  41. bishe-master/static/images/head_bg.png 7.7KB
  42. bishe-master/static/images/jt.png 71.9KB
  43. bishe-master/static/images/lbx.png 81.26KB
  44. bishe-master/static/images/line.png 3.85KB
  45. bishe-master/static/images/loading.gif 701B
  46. bishe-master/static/images/map.png 302.1KB
  47. bishe-master/static/images/mid_1.png 1.33KB
  48. bishe-master/static/images/mid_2.png 3.4KB
  49. bishe-master/static/images/mid_3.png 2.81KB
  50. bishe-master/static/images/zhu.png 402.66KB
  51. bishe-master/static/js/
  52. bishe-master/static/js/area_echarts.js 4.65KB
  53. bishe-master/static/js/china.js 117.16KB
  54. bishe-master/static/js/echarts.min.js 727.22KB
  55. bishe-master/static/js/index.html 8.92KB
  56. bishe-master/static/js/index2.html 8.87KB
  57. bishe-master/static/js/jquery.js 82.4KB
  58. bishe-master/static/js/js.js 13.9KB
  59. bishe-master/static/js/pyecharts.min.js 734.18KB
  60. bishe-master/static/js/vector.js 14.15KB
  61. bishe-master/templates/
  62. bishe-master/templates/ceshi2.html 3.29KB
  63. bishe-master/templates/index.html 6.24KB
  64. bishe-master/templates/job_demand_pie_sum.html 34.44KB
  65. bishe-master/templates/predict_xinzi.html 13.43KB
  66. bishe-master/templates/source/
  67. bishe-master/templates/source/no_favorite 2.1KB
  68. bishe-master/templates/test.html 8.14KB
  69. bishe-master/templates/xinzi_bar_sum.html 23.73KB
  70. bishe-master/templates/zhuce.html 6.99KB
  71. bishe-master/templates/zhuye.html 5.79KB
  72. bishe-master/testdjango/
  73. bishe-master/testdjango/__init__.py 45B
  74. bishe-master/testdjango/settings.py 3.41KB
  75. bishe-master/testdjango/urls.py 1.2KB
  76. bishe-master/testdjango/wsgi.py 397B
  77. bishe-master/user/
  78. bishe-master/user/__init__.py
  79. bishe-master/user/admin.py 3.38KB
  80. bishe-master/user/apps.py 83B
  81. bishe-master/user/migrations/
  82. bishe-master/user/migrations/0001_initial.py 541B
  83. bishe-master/user/migrations/0002_comp_job_stu.py 1.61KB
  84. bishe-master/user/migrations/0003_stu_password.py 383B
  85. bishe-master/user/migrations/0004_job.py 1.37KB
  86. bishe-master/user/migrations/0005_auto_20210602_1640.py 340B
  87. bishe-master/user/migrations/0006_auto_20210604_1547.py 422B
  88. bishe-master/user/migrations/0007_auto_20210613_0859.py 610B
  89. bishe-master/user/migrations/__init__.py
  90. bishe-master/user/models.py 2KB
  91. bishe-master/user/resource.py 431B
  92. bishe-master/user/tests.py 60B
  93. bishe-master/user/views.py 10.62KB
0评论
提交 加载更多评论
其他资源 串口(UART)的FPGA实现工程源码
基于Intel(Altera)的Quartus II平台的串口(UART)的FPGA实现工程源码: 1、包括接收部分 + 发送部分; 2、包含详细的仿真TB文件; 3、起始位1bit,数据位8bit,停止位1bit,无奇偶校验; 4、详细的说明文件请参考本人博文《https://wuzhikai.blog.csdn.net/article/details/114596930》。
数据结构演示软件
各种数据结构都有,而且附有源码,绝对方便!
STM32-GPS模块 ATGM336H参考例程 使用手册
ATGM336H参考例程 +使用手册
Java反编译工具
这是一款非常简单易用的反编译工具,安装后,选中要反编译的*.class文件,击右键,在打开方式里面选择Cavaj就能将它编译成java文件.绝对好用!
物业管理系统
物业管理系统,需然不是自己写但觉得初学者可以借鉴,故分享.
学生信息管理系统(jsp)
用jsp写的基于网络的学生信息管理系统
QtCharts绘制动态心电图
动态心电图绘制,通过qt定时器,实现心电图从左往右进行绘制,到达坐标轴最大值后,再从左往右继续进行绘制。 增加:文章地址:https://blog.csdn.net/DoleH/article/details/86250510
数字设计和计算机体系结构第二版奇数答案.pdf.zip
数字设计和计算机体系结构第二版奇数答案