Python开发的主要方向
1)Web开发
2)爬虫
urlib request库
requests
selenium自动化测试
3)人工智能
Tensorflow
人脸识别
1.人脸区域检测模型训练 2.人脸区域检测模型测试 3.人脸特征点标定样本标注 4.人脸特征点标定模型训练 5.人脸特征点标定模型测试
4)大数数据统计
数据可视化 matplotlib,numpy,pandas
import re from collections import Counter with open(r"c:\1.txt", "r", errors="ignore", encoding="utf-8") as filename: lines = filename.readlines() student_name=[] for line in lines: student_name.append((re.sub(r'[爸爸|妈妈|家长|的|-]', " ", line.split(" ")[1])).split(" ")[0]) for index,student in enumerate(student_name): print(index+1,".",student) print("*"*50) for index, student in enumerate(set(student_name)): print(index+1, ".", student) print("-"*50) for key,value in Counter(student_name).items(): if value>1: print(key,".",value)