辞梦

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  python

有关python的学习过程需要的笔记
TensorFlow
摘要:介绍 一个量, 在不同的参考系下按照某种特定的法则进行变换, 就是张量.** TensorFlow使用Tensor来表示数据 TensorFlow 在内部将张量表示为基本数据类型的n维数组 在TensorFlow所有的数据都是一个n维的数组,只是我们给它起了个名字叫做张量(Tensor) 阶(秩) 阅读全文

posted @ 2023-06-25 11:40 辞梦 阅读(15) 评论(0) 推荐(0) 编辑

python 日期和时间 函数
摘要:import time ticks = time.time() print("当前的时间戳是:" ) print(ticks) #获取当地时间 localtime = time.localtime(time.time()) print(localtime) #获取格式化的时间 lotime = ti 阅读全文

posted @ 2023-06-04 15:25 辞梦 阅读(63) 评论(0) 推荐(0) 编辑

python 列表,元组,字典
摘要:列表 list[] print("更新") list = [] list.append("aa") list.append('bb') print(list) print("删除") del list[1] print(list) print(len([1,2,3])) print([1,2,3]+ 阅读全文

posted @ 2023-06-04 15:09 辞梦 阅读(14) 评论(0) 推荐(0) 编辑

Python 的字符串内建函数
摘要:Python capitalize()方法 将字符串的第一个字母变成大写,其他字母变小写 print("第一个内建函数str.capitalize()") s1 = 'a,b' s2 = 'A,B' s3 = 'a,BCD' s4 = ' a,B' #因为a前面有个空格,所以不显示大写 print( 阅读全文

posted @ 2023-06-03 17:10 辞梦 阅读(235) 评论(0) 推荐(0) 编辑

python数值函数、转义字符等
摘要:python number 类型转换 python math 模块、cmath模块 python 数学模块 python 随机数函数 python三角函数 python数字 python转义字符 python字符串运算 python字符串格式化符号 阅读全文

posted @ 2023-05-31 21:28 辞梦 阅读(16) 评论(0) 推荐(0) 编辑

Matplotlib 几种图的绘制
摘要:Matplotlib matplotlib pyplot plot():绘制线图和散点图 scatter():绘制散点图 bar():绘制垂直条形图和水平条形图 hist():直方图 pie():饼图 imshow():图像 subplots():创建子图 import matplotlib.pyp 阅读全文

posted @ 2023-05-15 19:53 辞梦 阅读(87) 评论(0) 推荐(0) 编辑

直方图hist
摘要:直方图hist hist( x, bins=None, range=None, normed=False, # 超重要 density=False, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', r 阅读全文

posted @ 2022-09-07 21:38 辞梦 阅读(260) 评论(0) 推荐(0) 编辑

python函数——zip() map() round() insert()
摘要:df.rename(index=None 以字典的形式,赋予索引新的值,第一行 ,columns=None列 ,axis=None 指定坐标轴 ,inplace=False) 是否使用新生成的列表替换原列表 axis 参数不与index和columns参数连用 zip() 函数 用于将可迭代的对象作 阅读全文

posted @ 2022-09-02 21:26 辞梦 阅读(261) 评论(0) 推荐(0) 编辑

matplotlib 散点图
摘要:在matplotlib一般使用plt.figure来设置窗口尺寸。 plt.figure(figsize=(a, b)) 单位为英寸 fig, ax = plt.subplots(figsize = (a, b)) fig代表绘图窗口(Figure);ax代表这个绘图窗口上的坐标系(axis),一般 阅读全文

posted @ 2022-09-01 21:43 辞梦 阅读(186) 评论(0) 推荐(0) 编辑

时间序列 data_range()和bdate_range()
摘要:pd.date_range( start=None,#开始时间 end=None,#截止时间 periods=None,#总长度 freq=None,#时间间隔 tz=None,#时区 normalize=False,#是否标准化到midnight name=None,#date名称 closed= 阅读全文

posted @ 2022-07-26 17:48 辞梦 阅读(87) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示