有时你会发现,在你使用Android Studio 进行编译的时候提示:Error:Execution failed for task ':demo:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.pro...
分类:
移动开发 时间:
2015-06-08 14:42:10
阅读次数:
167
一个正整数的价值就是把这个数的十进制写出来之后,最长的等差子串的长度。求出在[l,r]范围内的数字的价值总和。(lb then exit(a) else exit(b); 8 end; 9 function dfs(now,ml,l,d,pre,st,lim:longint):int64;10 va...
分类:
其他好文 时间:
2015-06-07 18:53:00
阅读次数:
262
设置了两个子弹 和敌机两个类很容易实现 直接上代码吧 实现效果如图 原谅我傻逼的画风 1 #coding:utf-8 2 import pygame 3 import random 4 from sys import exit 5 class Bullet: 6 def __init__(s...
分类:
其他好文 时间:
2015-06-07 18:41:09
阅读次数:
108
连接:mysql -h主机地址 -u用户名 -p用户密码 (注:u与root可以不用加空格,其它也一样) 断开:exit (回车) 创建授权:grant select on 数据库.* to 用户名@登录主机 identified by \"密码\" 修改密码:mysqladmin -u用户名 -p...
分类:
数据库 时间:
2015-06-07 12:22:35
阅读次数:
139
$modified_time = $_SERVER['HTTP_IF_MODIFIED_SINCE'];if (strtotime($modified_time) + 3600 > time()) { header("HTTP/1.1 304"); exit(1);}header('La...
分类:
Web程序 时间:
2015-06-07 12:21:42
阅读次数:
131
find() 语句
启动MongoDB服务,因为mongoDB并不随系统一起启动,可能以下命令运行后会等一小段的时间才会启动完毕。
sudo service mongodb start
进入MongoDB命令行操作界面,在命令行中敲exit可以退出
mongo
find() 用法:db.COLLECTION_NAME.find()
> use post #创建post数...
分类:
数据库 时间:
2015-06-07 09:42:53
阅读次数:
154
#include main(){ FILE *fp; if((fp=fopen("in.txt","rt"))==NULL) { printf("错误:文件不存在"); getch(); exit(1); } while(fsc...
分类:
编程语言 时间:
2015-06-06 16:35:41
阅读次数:
121
最近在学习Python下面给出一个用Pygame模块实现的小动画通过按下鼠标来变换两张图片 1 #coding:utf-8 2 import pygame 3 4 from sys import exit 5 flag=0 6 pygame.init() #初始化 7 8 screen=pyga.....
分类:
其他好文 时间:
2015-06-06 16:33:41
阅读次数:
122
最近,使用师兄的工程时,突然报错之前没发现这个错误,信息如下:
ld: -pie can only be used when targeting iOS 4.2 or later
clang: error: linker command failed with exit code 1 (use -v to see invocation)
具体信息:
export IPH...
分类:
移动开发 时间:
2015-06-05 19:44:55
阅读次数:
179
C# 中的 Lock 语句通过隐式使用 Monitor 来提供同步功能。lock 关键字在块的开始处调用 Enter,而在块的结尾处调用 Exit。通常,应避免锁定 public 类型,否则实例将超出代码的控制范围。 常见的结构 lock (this)、lock (typeof (MyType)) ...