var DEF_PI =
Math.PI;
// 3.14159265359
var DEF_2PI =
2 *
Math.PI;
// 6.28318530712
var DEF_PI180 =
Math.PI
/ 180.0;
// 0.01745329252
var DEF_R =
6370996.81;
// radius of earth
// 利...
分类:
Windows程序 时间:
2015-02-13 00:22:39
阅读次数:
3560
第一步:解压缩(ota_from_target_files)
print "unzipping target target-files..."
OPTIONS.input_tmp, input_zip = common.UnzipTemp(args[0])上面的代码是开始进行解压缩的入口
def UnzipTemp(filename, pattern=None):
"""Unzip...
分类:
移动开发 时间:
2015-02-12 22:49:43
阅读次数:
427
fromPyQt4importQtGui,QtCoreclassButtonLineEdit(QtGui.QLineEdit):buttonClicked=QtCore.pyqtSignal(bool)def__init__(self,icon_file,parent=None):super(But...
分类:
其他好文 时间:
2015-02-12 13:45:22
阅读次数:
691
表单通过request取得from flask import Flask, render_template, requestapp = Flask(__name__) @app.route('/regist/', methods=['GET','POST'])def regist(): if req...
分类:
其他好文 时间:
2015-02-12 10:33:55
阅读次数:
141
Caocao's Bridges
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1752 Accepted Submission(s): 642
Problem Description
Caocao was def...
分类:
移动开发 时间:
2015-02-12 09:25:13
阅读次数:
194
找到robot/utils/unic.py,修改_unic函数def _unic(item, *args): try: return unicode(item, *args) except UnicodeError: try: retur...
分类:
其他好文 时间:
2015-02-11 23:19:24
阅读次数:
205
主要是 解决了压缩目录下 空文件夹 的压缩 和 解压缩问题压缩文件夹的函数: 1 # coding:utf-8 2 import os 3 import zipfile 4 5 def zipdir(dirToZip,savePath): 6 if not os.path.isdir(di...
分类:
编程语言 时间:
2015-02-11 14:16:37
阅读次数:
4190
# -*- encoding: UTF-8 -*-from collections import defaultdictclass News(object): def __init__(self, title, type): self.title =title se...
分类:
编程语言 时间:
2015-02-10 15:00:40
阅读次数:
159
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Def...
分类:
其他好文 时间:
2015-02-10 14:55:46
阅读次数:
127
(function($){$.extend({BE:function(opt){vardef={id:null,type:null,fun:null}$.extend({},opt,def);$(document).delegate(opt.id,opt.type,opt.fun);}});})(j...
分类:
其他好文 时间:
2015-02-10 13:03:59
阅读次数:
109