摘要: """ 分页组件使用示例: obj = Pagination(request.GET.get('page',1),len(USER_LIST),request.path_info) page_user_list = USER_LIST[obj.start:obj.end] page_html = obj.page_html() return render(re... 阅读全文
posted @ 2018-11-07 21:44 JourneyT 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1.协程的作用域package main import ( "fmt") func test(a string){ fmt.Println("我是:",a)} func main() { fmt.Println(111111) go test("并发") test("普通")} 执行以下的代码,等到 阅读全文
posted @ 2018-11-07 20:55 JourneyT 阅读(950) 评论(0) 推荐(0) 编辑