- 博客(7)
- 收藏
- 关注
原创 file not found: /usr/lib/libstdc++.dylib
file not found: /usr/lib/libstdc++.dylib下载:https://github.com/devdawei/libstdc-运行:install-Xcode_12.sh
2021-06-16 17:07:31 3269 1
原创 hook stringWithFormat
hook stringWithFormat网上找了半天, 都是不能直接用的@implementation NSString (my)+ (void)initialize { static dispatch_once_t onceToken; dispatch_once(&onceToken,^{ Method originalMethod = class_getClassMethod(NSClassFromString( @"NSString" ), NS
2021-06-11 22:36:31 430
原创 urllib2 post请求
urllib2 post请求import urllib2req = urllib2.Request(url, body, headers)response = urllib2.urlopen(req)return response.read()
2021-06-10 11:40:44 905
原创 go : 条件和循环
go : 条件和循环package condition_testimport "testing"func TestSwitchMultiCase(t *testing.T) { for i := 0; i < 5; i++ { switch i { case 0, 2: t.Log("Even") case 1, 3: t.Log("Odd") default: t.Log("it is not 0-3") } }}func TestSwitch
2021-06-02 21:56:55 56
原创 go : 运算符
go : 运算符package operator_testimport "testing"const ( Readable = 1 << iota Writable Executable)func TestCompareArray(t *testing.T) { a := [...]int{1, 2, 3, 4} b := [...]int{1, 3, 4, 5} d := [...]int{1, 2, 3, 4} t.Log(a == b) t.Log(a ==
2021-06-02 21:36:08 60
原创 go : 数据类型
go : 数据类型package type_testimport "testing"type MyInt int64func TestImplicit(t *testing.T) { var a int32 = 1 var b int64 b = int64(a) var c MyInt c = MyInt(b) t.Log(a, b, c)}func TestPoint(t *testing.T) { a := 1 aPtr := &a t.Log(a, aPt
2021-06-02 21:20:46 50
原创 NSArray截取元素
NSArray截取元素NSArray *array = [array subarrayWithRange:NSMakeRange(0, 4)];
2021-06-01 10:28:56 598
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人