摘要: import syssys.path.append(r'c:\programdata\anaconda33\lib\site-packages')import mathimport numpy as npimport pandas as pdfrom pandas import DataFrame 阅读全文
posted @ 2022-03-19 22:30 小北123799498 阅读(28) 评论(0) 推荐(0)
摘要: import wxfrom python实验2 import classinformationclass MyFrame(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,title="班级信息收集程序 阅读全文
posted @ 2021-12-12 11:58 小北123799498 阅读(27) 评论(0) 推荐(0)
摘要: import jiebatext=open('D:/红楼梦/红楼梦.txt',"r",encoding='utf-8').read()words=jieba.lcut(text)counts={}for word in words: if len(word)==1: #排除带个字符的分词效果 con 阅读全文
posted @ 2021-11-14 10:14 小北123799498 阅读(68) 评论(0) 推荐(0)
摘要: import turtle, datetime def drawGap(): # 绘制数码管间隔 turtle.penup() turtle.fd(5) def drawLine(draw): # 绘制单段数码管 drawGap() turtle.pendown() if draw else tur 阅读全文
posted @ 2021-10-24 02:23 小北123799498 阅读(600) 评论(0) 推荐(0)
摘要: 恢复内容开始 一 pi = 0N = 100for k in range(N): pi += 1/pow(16,k) * (4/(8*k+1) - 2/(8*k+4) - 1/(8*k+5) - 1/(8*k+6))print("圆周率值是:{}".format(pi)) 二 #!/usr/bin/ 阅读全文
posted @ 2021-09-28 22:58 小北123799498 阅读(26) 评论(0) 推荐(1)
摘要: 03运行超市抹零结账行为 moneyall=56.75+72.91+88.50+26.37+68.51moneyallstr=str(moneyall)print("商品总金额为:"+moneyallstr)moneyreal=int(moneyall)moneyrealstr=str(moneyr 阅读全文
posted @ 2021-09-14 01:18 小北123799498 阅读(21) 评论(0) 推荐(0)
摘要: print(''' * * * * * * * * @ @ * * * * @ * * * * * * * * * * * * 9813''') 阅读全文
posted @ 2021-09-06 00:29 小北123799498 阅读(35) 评论(0) 推荐(0)
摘要: 第一次心得体会 这周正式的上了python课,目前对于python的了解有:python是现代社会挺重要的编程的一种,相比于第一学期学的C语言,给我感觉他省略了许多,更加简洁了。它是我们老师所说的工具的一种,相较于理论知识,它与我们平时生活联系更加紧密,更加能够学以致用。也通过课程了解到了,pyth 阅读全文
posted @ 2021-09-05 23:54 小北123799498 阅读(27) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示