{% if request.user.is_authenticated %} <div class="top"> <div class="wp"> <div class="fl"> <p>服务电话:<b>33333333</b></p> </div> <!--登录后跳转--> <div class= ...
分类:
其他好文 时间:
2017-12-16 17:17:32
阅读次数:
127
class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ l=[] candidate=['(',')','{','}','[',']'] d={'(':')','{':'}'... ...
分类:
其他好文 时间:
2017-12-16 17:14:42
阅读次数:
125
class Solution(object): def isSamechar(self,strs,pos): if(len(strs[0])<=pos): return False else: for i in range(1,len(strs)): if len(strs[i... ...
分类:
其他好文 时间:
2017-12-16 16:02:44
阅读次数:
181
class Solution(object): def romanToInt(self, s): """ :type s: str :rtype: int """ d={"I":1,"V":5,"X":10,"L":50,"C":100,"D":500,"M":1000} sum=0 ... ...
分类:
其他好文 时间:
2017-12-16 16:00:29
阅读次数:
121
import time import hashlib import pickle import os class Info(): def __init__(self): self.create_time=time.time() def md5(self): m=hashlib.md5() m.upd... ...
分类:
其他好文 时间:
2017-12-16 14:48:02
阅读次数:
145
import tkinter import random import tkinter.messagebox class choujiang: def __init__(self): self.root=tkinter.Tk() self.root.minsize(400,400) self.roo... ...
分类:
编程语言 时间:
2017-12-16 00:37:09
阅读次数:
208
Tornado 异步非阻塞 from tornado import gen class MainHandler(tornado.web.RequestHandler): @gen.coroutine #关键点 def get(self): futrue =Future()#关键点 #阻塞内容,必须写 ...
分类:
其他好文 时间:
2017-12-15 22:39:57
阅读次数:
174
一开始准备用二维 DP 来做,但是发现不好写。看了别人用了 height 数组解决此题,后面写了上述题解。 ...
分类:
其他好文 时间:
2017-12-15 15:06:36
阅读次数:
117
[本文出自天外归云的博客园] 需求 最近在后台项目代码中一段自定义的AES加解密的程序在平时的测试工作中应用频繁。因为写脚本经常会需要使用,而经过各种尝试,比如jpype等,都不尽如人意。最后转换思路找到了一种好方法: 1. 将java项目打成jar包; 2. 设定jar包的Main-class属性 ...
分类:
编程语言 时间:
2017-12-15 15:02:53
阅读次数:
230