利用map()函数,把用户输入的不规范的英文名字,变为首字母大写,其他小写的规范名字。输入:['adam', 'LISA', 'barT'],输出:['Adam', 'Lisa', 'Bart']。 1 def cg(name): 2 return name[0].upper()+name[1:]. ...
分类:
编程语言 时间:
2017-07-04 14:52:19
阅读次数:
189
测试模式主要为了让客户类能够更好地使用某些算法而不需要知道其具体的实现。 ...
分类:
其他好文 时间:
2017-07-04 14:48:17
阅读次数:
129
Introduction One of the most common problems for novice, and sometimes experienced, OpenGL programmers is that they write new rendering code, run it, ... ...
settings主要配置项目: URLConf里面加的那一项是 想在这类静态目录都是根据__file__的目录动态设置 ...
分类:
其他好文 时间:
2017-07-04 14:41:22
阅读次数:
180
将glut.h文件放到MinGw\include\GL目录下面 将glut32.dll文件放到C:\windows\system32目录下面(如果是64位操作系统的话,将这个文件放到C:\Windows\SysWOW64目录下面) 将libglut32.a放到MinGw\lib\目录下面 ...
分类:
其他好文 时间:
2017-07-04 13:29:56
阅读次数:
111
<pre name="code" class="cpp">ndk开发: 1.编译android本地程序的二种方法.q 2.安装ndk编译工具. 3.编写android.apk程序. 4.编写jni接口.定义应用程序接口, 5.编写Java文件,生成相应的字节码文件. 6.使用javah -jni T ...
分类:
其他好文 时间:
2017-07-04 13:24:25
阅读次数:
187
题目链接:https://leetcode.com/problems/implement-queue-using-stacks/ 题目:Implement the following operations of a queue using stacks. push(x) -- Push elemen ...
分类:
其他好文 时间:
2017-07-04 13:19:35
阅读次数:
170
//电脑端 扫码授权登录 public static string AuthUrl = "https://open.weixin.qq.com/connect/qrconnect?appid={0}&redirect_uri={1}&response_type=code&scope=snsapi_l ...
分类:
微信 时间:
2017-07-04 13:16:22
阅读次数:
2970
一、理论: 1.RGB色彩模式 a.CMYK色彩模式 b.索引色彩模式 (主要用于web) c.灰度模式 d.双色调模式 2.opacity: a.alphavalue:透明度 b.inherit:继承父元素的不透明性 二、实践: 1. <!DOCTYPE html> <html lang="en" ...
分类:
Web程序 时间:
2017-07-04 12:18:06
阅读次数:
232
1 /// 2 /// HttpClient实现Get请求(异步) 3 /// 4 private static async void DoGet() 5 { 6 var url = "http://localhost:5555/api/Test/Get?id=1"; 7 ... ...
分类:
Web程序 时间:
2017-07-04 12:11:39
阅读次数:
211