上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: 同的平台上对不同的数据类型分配的字节数是不同的,一般的,数据类型的字节数是由编辑器决定的(编译期间决定数据类型长度)。 简单来说,平台就是CPU+OS+Compiler,cpu的位是指一次性可处理的数据量是多少,1字节=8位,32位处理器可以一次性处理4个字节的数据量,依次类推。32位操作系统针对的 阅读全文
posted @ 2018-12-06 14:25 andy_0212 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: 可以使用以下方式进入: 具体分析如下: 正的问题是,当你在任何Cytwin终端程序(如mintty)中运行命令时,它们不会充当Windows控制台。只有像CMD或Console2这样的基于Windows控制台的人才能做到这一点。所以,使用Cygwin终端时,Windows python.exe并不认 阅读全文
posted @ 2018-12-05 21:50 andy_0212 阅读(513) 评论(0) 推荐(0) 编辑
摘要: Cygwin我想不用多介绍了,我就想说下用Cygwin来编写*nix下的程序。由于Cygwin默认安装(就是推荐的安装)后,没有安装文本编辑器,我今天的主要目的就是先给它装上文本编辑器vim.由于已经装上了Cygwin,所以不必卸载(其实在windows下卸载Cygwin比较麻烦,没有研究过),将你 阅读全文
posted @ 2018-12-05 21:43 andy_0212 阅读(540) 评论(0) 推荐(0) 编辑
摘要: works fine whereas Logic operator for boolean indexing in Pandas Logic operator for boolean indexing in Pandas 阅读全文
posted @ 2018-12-05 10:49 andy_0212 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 一般来说用一下代码就可reload你的module 如果你开始写的是下面的,想重新加载, 需要用下面几句: 或者 具体解释可见: how to reload after “from <module> import *”? When you do from module import * everyt 阅读全文
posted @ 2018-12-05 09:18 andy_0212 阅读(450) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/6434482/python-function-overloading Why Not Overloading? First one needs to understand the concept of overloading 阅读全文
posted @ 2018-12-04 11:12 andy_0212 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 下面的代码,可以无阻碍地show 5个figure,相当于开启了ipython的interactive 模式 具体参见stackoverflow: in matplotlib, is there a way to pop up a figure asynchronously? 阅读全文
posted @ 2018-12-04 11:11 andy_0212 阅读(429) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/19918532 作者:rainoftime链接:https://www.zhihu.com/question/19918532/answer/21647195来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 阅读全文
posted @ 2018-12-04 09:41 andy_0212 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 # Generate some data... 5 data = np.random.random((100, 1)) 6 # y = data.mean(axis=0) 7 # x = np.random.random(y.size) * 10 8 # x... 阅读全文
posted @ 2018-12-04 09:27 andy_0212 阅读(1959) 评论(0) 推荐(0) 编辑
摘要: 设置数据库路径非常重要: 方法: 1 配置数据库 basedir= os.path.abspath(os.path.dirname(__file__)) #获取当前文件的绝对路径 app = Flask(__name__) # 拼接数据库的URL路径 # os.path.join 把basedir和 阅读全文
posted @ 2018-12-03 23:09 andy_0212 阅读(1632) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页