
基础
文章平均质量分 58
学习啊啊啊啊啊
QQ1257876455
展开
-
python 带置信区间的折线图
今天来尝试一下学以致用,资料参考于https://www.jianshu.com/p/4d7d7e4ff4f8 jupyter notebook对新手非常友好 import seaborn as sns tips = sns.load_dataset("tips") tips 两个非常有用的快捷键(shortcut) Tab shift+Tab 可以逐步查看 sns.regplot sns.regplot(x="total_bill",y="tip",data=tips) 尝试打开自己的工作表时原创 2022-05-07 20:25:45 · 2796 阅读 · 0 评论 -
python之package
推荐一个网址https://pypi.org/ search for “openpyxl” on this website copy the commander, and paste it on the terminal of PyCharm 不知道为什么我的terminal打开后有红色字体的提示,先不管了,如果报错,再来解决这个问题) 结果,我应该在anaconda安装过了 果然。先看看能不能用吧 1.右键当前工程文件“HelloWorld" 2.open in explorer(系统不同,命原创 2022-05-06 20:38:25 · 731 阅读 · 0 评论 -
python之class
当构建一个类时,相当于用语言去描述真实世界的一个对象,如Person,这个Person有名字name,年龄age,会执行动作saying,我最开始的代码是这样的 有一个Mary class 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 · 225 阅读 · 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 · 321 阅读 · 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 · 850 阅读 · 0 评论