牛客251960512号
牛客251960512号
全部文章
Python基础语法
markdown(1)
MySQL(15)
numpy(3)
Obsidian(6)
pandas(6)
PPT(1)
Pyhon面向对象(1)
Python数据分析与展示(11)
python自动化(2)
Tableau(17)
可视化(3)
未归档(1)
百度(1)
系统(1)
系统问题(1)
题解(40)
归档
标签
去牛客网
登录
/
注册
心际花园
编程就像一个迷宫,有无穷无尽的歧路,在其中的体验是有趣的。
全部文章
/ Python基础语法
(共60篇)
python3实现阿拉伯数字和中文数字转换
# transNum num= input("请输入阿拉伯数字:") han = "零一二三四五六七***" for i in range(len(num)): numsplit = int(num[i]) print(han[numsp...
2021-10-25
0
449
Python绘制金字塔
# pyramid import turtle as t t.pencolor("gold") t.pensize(2) count = 10 while count > 0: for i in range(count): t.fd(10) ...
2021-10-25
0
415
Python画熊头像
用python3画了一只丑熊 ```python3 # bear import turtle as t # 脸 t.pensize(2) t.color('yellow') t.pencolor("black") t.begin_fill() t.circle(40,36...
2021-10-25
0
526
读取文件时出现“UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x80 in position 42: illegal multibyte se”
原来代码如下 #coding=utf-8 testF1= open("testFi.txt","r") for line in testF1: print(line) 结果出现错误 UnicodeDecodeError: 'gb...
2021-10-25
0
608
python统计《论语》里的词频
利用jieba库统计《论语》里的词频 #CalLunyuV1.py import jieba txt = open("lunyu.txt", "r", encoding = "utf-8").read() words = jieba.l...
2021-10-25
0
569
python3分析《全唐诗》词频
利用python3和jieba库分析全唐诗 #CalQuantangshiV1.py import jieba def getText(): txt = open("quantangshi.txt", "r", encoding = "u...
2021-10-25
0
763
python3分析《西游记》词频
#CalXiyoujiV1.py import jieba txt = open("xiyouji.txt", "r", encoding = "utf-8").read() words = jieba.lcut(txt) counts =...
2021-10-25
0
422
python3分析《三国演义》出场人物频次
利用jieba库分析《三国演义》人物频次。 #CalThreeKingdomsV2.py import jieba txt = open("threekingdoms.txt", "r", encoding = "utf-8").rea...
2021-10-25
0
506
python3分析《论文》人物出现频次
#CalLunyuV2.py import jieba txt = open("lunyu.txt", "r", encoding = "utf-8").read() excloudes = { "君子",&qu...
2021-10-25
0
300
python3分析《全唐诗》写诗最勤奋的10名诗人
利用jieba库统计《全唐诗》中写诗最勤奋的10位诗人。 #CalQuantangshiV2.py import jieba def getText(): txt = open("quantangshi.txt", "r", encoding = ...
2021-10-25
0
542
首页
上一页
1
2
3
4
5
6
下一页
末页