Python基础(1)
:IT学习乐园
:Builder
:20240727
:929

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)

python110.jpg



开发者免费试用
开发者免费试用

9:30开抢,每天限量100份.个人认证新用户绑定邮箱后...

立刻前往...
华为企业应用专场
华为企业应用专场

企业建站买1年送2年,商标注册270元起,企业邮箱400...

立刻前往...
阿里ECS新春特惠
阿里ECS新春特惠

2022年2月20日期前,您点击链接,并完成实名认证,即...

立刻前往...
企业上云钜惠
企业上云钜惠

多款刚需产品,满足企业通用场景需求,云服务器2.5折起...

立刻前往...