摘要: http://www.pythonexcel.com/这个网站emm,挺详细的 嗯,主要翻译一下:http://www.pythonexcel.com/python-excel-writer.php 向Excel 写入数据的库 蛮多的 ,这里主要说 下 openpyxl 库: 一、写入数据 emmm 阅读全文
posted @ 2018-08-10 15:15 bear_ge 阅读(70526) 评论(0) 推荐(0) 编辑
摘要: pwd:Print working directory 显示当前工作路径。 su:Swith user 切换用户,切换到root用户 cd:Change directory 切换目录 ls:List files 列出目录下的文件 ps:Process Status 进程状态 mkdir:Make d 阅读全文
posted @ 2018-08-08 18:33 bear_ge 阅读(545) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3308 阅读全文
posted @ 2018-08-07 17:14 bear_ge 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 线段树 区间合并模板 --区间更新 题目:http://poj.org/problem?id=3667 阅读全文
posted @ 2018-08-06 18:57 bear_ge 阅读(452) 评论(0) 推荐(0) 编辑
摘要: void multi(int a[],int b[],int c[],int an,int bn,int &cn){ //a[]被乘数 b[]乘数 c[] 保存结果 //an表示a数组中所存大数的位数,bn表示b数组中所存大数的位数,cn存c数组的位数 for(int i=maxn-1;i>=maxn-bn;i--){ //乘数 int weight=... 阅读全文
posted @ 2018-08-03 18:56 bear_ge 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include #include #define maxn 1000001 int c[maxn]; int a[maxn]; int lowbit(int x){ return x&(-x); } int ini(){ //初始化 for(int i=1;i=i-lowbit(i);k++){ c[i]+=a[k]; } } } void update(int p... 阅读全文
posted @ 2018-08-03 10:06 bear_ge 阅读(128) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1394 方法一: 线段树 阅读全文
posted @ 2018-07-31 19:51 bear_ge 阅读(124) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1698 模板! 阅读全文
posted @ 2018-07-30 21:38 bear_ge 阅读(132) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2484 A Funny Game Description Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 阅读全文
posted @ 2018-07-29 14:10 bear_ge 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 程序文件分为脚本文件和函数文件 脚本文件:可以在命令行直接在命令行窗口执行,也叫命令文件 函数文件:定义一个函数,不能直接执行,而必须以函数调用的方式来调用它 文件的建立(可以任何文本编辑器编辑) 用命令按钮创建文件 用edit命令创建文件 顺序结构 (1) 数据的输入 A=input(提示信息,选 阅读全文
posted @ 2018-07-06 21:02 bear_ge 阅读(709) 评论(0) 推荐(0) 编辑