【Transform & Physics】1、Space。Unity定义了Space枚举值,此值如下: 通常通过Space.World、Space.Self来区别一个Vector是按世界坐标系作用还是按本地坐标系作用。参考:file:///D:/Program%20Files%20(x86)/...
分类:
其他好文 时间:
2014-07-03 10:38:28
阅读次数:
182
在PHP中getenv(参数)函数是一个用于获取环境变量的函数,根据提供不同的参数可以获取不同的环境变量,具体如下:“PHP_SELF”当前正在执行脚本的文件名,与document root 相关。如果PHP 以命令行方式运行,该变量在PHP 4.3.0 之前无效。“argv”传递给该脚本的参数。当...
分类:
其他好文 时间:
2014-07-01 22:48:09
阅读次数:
985
详细参数PHP编程中经常需要用到一些服务器的一些资料,特把$_SERVER的详细参数整理下,方便以后使用。$_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root相关。$_SERVER['argv'] #传递给该脚本的参数。$_SERVER['argc']...
分类:
Web程序 时间:
2014-07-01 22:27:26
阅读次数:
249
分享一个python定时器的例子,有关python time模块的实例。代码:class SLTimer(multiprocessing.Process):#from datetime import datetime#import timedef __init__(self, target=None...
分类:
编程语言 时间:
2014-07-01 20:43:12
阅读次数:
247
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in...
分类:
其他好文 时间:
2014-07-01 17:00:40
阅读次数:
321
可以检查参数,一直没注意这个语言特性,忽略了很多细节,感谢 vitrox
class Person( object ):
def __init__( self, name ):
if not isinstance( name, str ):
raise TypeError( '...' )
else:...
分类:
编程语言 时间:
2014-07-01 10:00:34
阅读次数:
181
经常在做webqq机器人,但是最头痛的问题就是腾讯经常加一些验证串来防止robot,现在共享出最新的腾讯密码加密算法和hash
算法
hash算法
def webqq_hash(i, a):
if isinstance(i, (str, unicode)):
i = int(i)
class b:
def __init__(self, _b,...
分类:
Web程序 时间:
2014-07-01 07:54:48
阅读次数:
272
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
self.mapView.mapType =...
分类:
其他好文 时间:
2014-07-01 06:17:34
阅读次数:
758
1, 添加手势self.longPressRecognizer = [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(handleLongPress:)];[btn addGestureRecogniz...
分类:
其他好文 时间:
2014-06-30 21:13:14
阅读次数:
251
1.如何设置tableview每行之间的分割线self.table.separatorStyle=UITableViewCellSeparatorStyleSingleLine;2.如何让cell能够响应select,但是选中后的颜色又不发生改变呢,那么就设置法一:完全不变色cell.selectionStyle=UITableViewCellSelectionStyleNone;法二:变下色马..
分类:
其他好文 时间:
2014-06-29 21:51:09
阅读次数:
362