URLconf技巧 URLconf没什么特别的,就象 Django 中其它东西一样,它们只是 Python 代码。 你可以在几方面从中得到好处,正如下面所描述的。 流线型化(Streamlining)函数导入 看下这个 URLconf,它是建立在第三节的例子上: 正如第三节中所解释的,在 URLco ...
分类:
Web程序 时间:
2018-08-12 18:48:13
阅读次数:
184
Web 浏览器 Eclipse 系统内部自带了浏览器,该浏览器可以通过点击 Window 菜单并选择 Show View > Other,在弹出来的对话框的搜索栏中输入 "browser"。 在树形菜单中选择 "Internal Web Browser" 并点击 OK。 在内置浏览器中我们在地址栏中 ...
分类:
系统相关 时间:
2018-08-12 18:40:32
阅读次数:
202
Given a set of N people (numbered 1, 2, ..., N), we would like to split everyone into two groups of any size. Each person may dislike some other peopl ...
分类:
其他好文 时间:
2018-08-12 14:20:26
阅读次数:
254
32位和64位指的是操作系统的位数,映射到C语言中,最直观的就是指针类型占用的字节数。 1 32位系统: 地址占32位,所以指针类型同样占32位,即4字节。 2 64位系统: 地址占64位,所以指针类型同样占64位,即8字节。 于是,只需要判断任意一个指针的sizeof值,即可获取到位数。 如 in ...
分类:
编程语言 时间:
2018-08-12 12:15:27
阅读次数:
140
###CSS选择器的分类#####标签选择器直接把标签名当做选择器来用语法:标签选择器{css属性名:css属性值;}权重:1```<style> div{color:red;} </style> <div>div1</div> <div>div1</div> <div>div1</div>```# ...
分类:
Web程序 时间:
2018-08-12 11:56:37
阅读次数:
205
原题如下: Conscription Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16584 Accepted: 5764 Description Windy has a country, and he wants to bu ...
分类:
其他好文 时间:
2018-08-12 01:27:31
阅读次数:
136
Consider nn initial strings of lower case letters, where no initial string is a prefix of any other initial string. Now, consider choosing kk of the s ...
分类:
其他好文 时间:
2018-08-11 20:48:36
阅读次数:
180
Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n ...
分类:
其他好文 时间:
2018-08-10 19:56:39
阅读次数:
155
一、安装SpringBoot插件 安装过程需要联网下载插件,属于在线安装,请耐心等待安装完成,下载安装完成以后,需要重启Eclipse 二、创建Spring Boot项目 如下图所示new-other-Spring Boot-Spring Starter Project,如果找不到相关选项,说明上一 ...
分类:
编程语言 时间:
2018-08-10 19:43:12
阅读次数:
237
Python 的 asyncio 类似于 C++ 的 Boost.Asio。 所谓「异步 IO」,就是你发起一个 IO 操作,却不用等它结束,你可以继续做其他事情,当它结束时,你会得到通知。 Asyncio 是并发(concurrency)的一种方式。对 Python 来说,并发还可以通过线程(th ...
分类:
编程语言 时间:
2018-08-10 10:54:10
阅读次数:
187