python
文章平均质量分 54
学习啊啊啊啊啊
QQ1257876455
展开
-
Python读取文件名并导出
结果如果没有使用循环。原创 2023-07-24 10:27:46 · 319 阅读 · 0 评论 -
python 带置信区间的折线图
今天来尝试一下学以致用,资料参考于https://www.jianshu.com/p/4d7d7e4ff4f8jupyter notebook对新手非常友好import seaborn as snstips = sns.load_dataset("tips")tips两个非常有用的快捷键(shortcut)Tabshift+Tab可以逐步查看sns.regplotsns.regplot(x="total_bill",y="tip",data=tips)尝试打开自己的工作表时原创 2022-05-07 20:25:45 · 2706 阅读 · 0 评论 -
python之package
推荐一个网址https://pypi.org/search for “openpyxl” on this websitecopy the commander, and paste it on the terminal of PyCharm不知道为什么我的terminal打开后有红色字体的提示,先不管了,如果报错,再来解决这个问题)结果,我应该在anaconda安装过了果然。先看看能不能用吧1.右键当前工程文件“HelloWorld"2.open in explorer(系统不同,命原创 2022-05-06 20:38:25 · 706 阅读 · 0 评论 -
python之class
当构建一个类时,相当于用语言去描述真实世界的一个对象,如Person,这个Person有名字name,年龄age,会执行动作saying,我最开始的代码是这样的有一个Maryclass Person(): def __init__(self, name,age) : Person.name = name Person.age= age def saying(self): print("hi, I am " + self.name+".原创 2022-05-05 19:46:10 · 196 阅读 · 0 评论 -
python之function
将具有特定功能的多行语句组合成一个function,以后就可以重复利用这个function啦,具体代码如下def greeting(): print("start") name= input ("what is your name?") print (name +", you are such a lucky dog!") print("see you")start= input ("do you wanna play a game? yes or no: ")if s原创 2022-05-05 18:17:57 · 301 阅读 · 0 评论 -
python的第一个尝试
今天安装了PyCharm,下载网址为https://www.jetbrains.com/pycharm/download/#section=windows安装后,界面如下:点击 “new project”,修改保存路径(可选)click on “new project”, and then change the saving location (optional)在新建前,查看一下base interpreter是否正确,应该选择自己安装python的版本(应该是3.0以上版本了),然后crea原创 2022-05-04 20:37:18 · 811 阅读 · 0 评论