时间戳tiimestamp:固定的时刻->pd.Timestamp 固定时期period:比如2016年3月份,再如2015年销售额->pd.Period 时间间隔interval:由起始时间和结束时间来表示,固定时期是时间间隔的一个特殊 时间日期在Pandas里的作用:分析金融数据,如股票交易数据 import pandas as pd import numpy as np # 处理时间需要用到的包 from datetime import datetime from datetime im
1.Python切片对象可以为任意类型 https://github.com/python/cpython/blob/master/Include/sliceobject.h /* Slice object interface */ /* A slice object containing start, stop, and step data members (the names are from range). After much talk with Guido, it was decid
两种循环: for x in …… while range(n) 生成整数序列,并且是从0开始一直到n-1的整数 raw_input() 读取的内容永远以字符串的形式,必须先用 int() 把字符串转换为我们想要的整数 int(raw_input()) 记录配置eclipse 下的python环境 list and tuple 2种列表 前者可变用“[]”初始化,后者不可变 用“()”初始化 dict and set 2种键值对,dict 字典用 "{}" 初始化,dict内部存放