![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Object_in_java
这个作者很懒,什么都没留下…
展开
-
python 统计小说词数(完整,无bug,优化版)
import oswith open('DouJuan', encoding='utf-8') as file_obj: contents = file_obj.read() print(contents)string = contents.lower()string = string.replace("\n"," ")# 删除字符串内除了字母与空格的字符 例如@#$%^&*()_+:<>.|}""?这些特殊符号newstring = ""for i原创 2022-03-04 13:46:09 · 1087 阅读 · 0 评论 -
Educorder Pandas初体验 (第一关到第八关)
第一题:# -*- coding: utf-8 -*-from pandas import Series,DataFrameimport pandas as pddef create_series(): ''' 返回值: series_a: 一个Series类型数据 series_b: 一个Series类型数据 dict_a: 一个字典类型数据 ''' # 请在此添加代码 完成本关任务 # ********** Begin ***原创 2021-12-22 14:50:04 · 2353 阅读 · 1 评论