Python基础(1)
:IT学习乐园
:Builder
:20240424
:745

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



华为云速邮箱
华为云速邮箱

企业办公必备, 安全简单易用收发稳定的企业邮箱...限时...

立刻前往...
注册认证上云抽好礼
注册认证上云抽好礼

汇聚全站年度销量TOP云产品,每天上午9点限量秒杀,优惠...

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

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

立刻前往...
新用户专属大礼包
新用户专属大礼包

新客户无门槛领取总价值高达2860元代金券,先到先得。...

立刻前往...