# -*- coding: utf-8 -*- import time from threading import Lock, RLock from datetime import datetime from threading import Thread import threading class Test: def __init__(self): self.obj_lock = Lock() self.obj_rlock = RLock() self.a = 1 self.b = 2 se…
    https://github.com/chenghuige/tensorflow-exp/blob/master/examples/sparse-tensor-classification/     tensorflow-exp/example/sparse-tensor-classification/train-validate.py 当你需要train的过程中validate的时候,如果用placeholder来接收输入数据 那么一个compute graph可以完成这个任务.如果你…
所选项目名称:文本替换      结对人:曲承玉 github地址 :https://github.com/bxoing1994/test/blob/master/源代码 结对人github地址:https://github.com/quchengyu/jiedui/tree/quchengyu-patch-1 用一个新字符串替换文本文件中所有出现每个字符串的地方.文件名和字符串都作为命令行参数进行传递.给出相应的测试文件和测试字符串. 项目设计方案        一起选定项目敲定大体结构后,我…
https://github.com/golang/crypto/blob/master/bcrypt/bcrypt.go…
# Python implementation of the MySQL client-server protocol # http://dev.mysql.com/doc/internals/en/client-server-protocol.html # Error codes: # http://dev.mysql.com/doc/refman/5.5/en/error-messages-client.html from __future__ import print_function f…
#!/usr/bin/env python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License…
1. 什么是 GC,有什么作用? GC,全称 Garbage Collection,即垃圾回收,是一种自动内存管理的机制. 当程序向操作系统申请的内存不再需要时,垃圾回收主动将其回收并供其他代码进行内存申请时候复用,或者将其归还给操作系统,这种针对内存级别资源的自动回收过程,即为垃圾回收.而负责垃圾回收的程序组件,即为垃圾回收器. 垃圾回收其实一个完美的 "Simplicity is Complicated" 的例子.一方面,程序员受益于 GC,无需操心.也不再需要对内存进行手动的申请…
――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ### Command ``` /Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod install ``` ### Report * What did you do? * What did you expect to happen? * What happened instead? #…
获取python的源码 3.x及最新版本的源码:https://github.com/python/cpython python2.7分支的源码:https://github.com/python/cpython/tree/v2.7.18 python官网也提供源码下载:https://www.python.org/downloads/source ps. 对比过从官网下载的源码和github内容是一样的 python的源码是由C语言编写的,所以叫cpython 编译python源码 我是在wi…
推送本地代码到github报错 git push报错 ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/Operater9/guest' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterp…