码迷,mamicode.com
首页 >  
搜索关键字:python    ( 135041个结果
Python利用subprocess起进程
from multiprocessing import Process, Pool import time import subprocess def task(msg): print 'hello, %s' % msg time.sleep(1) def test_pool(): pool = P... ...
分类:编程语言   时间:2018-01-14 21:24:38    阅读次数:196
tfboys——tensorflow模块学习(三)
tf.estimator模块 定义在:tensorflow/python/estimator/estimator_lib.py 估算器(Estimator): 用于处理模型的高级工具。 export 模块:用于导出估算器的实用方法。 inputs 模块:用于创建简单的 input_fns 的实用方法 ...
分类:其他好文   时间:2018-01-14 21:24:05    阅读次数:312
Python线程包装器
import threading import subprocess import time def need_thread(func, *args, **kwargs): def fun(): print "sub:" + str(threading.current_thread().ident)... ...
分类:编程语言   时间:2018-01-14 21:22:26    阅读次数:171
flask-sqlalchemy使用命令创建数据库
执行命令: 初次: python manage.py db init python manage.py db migrate python manage.py db upgrade ...
分类:数据库   时间:2018-01-14 21:21:35    阅读次数:1457
python实现身份证识别
github: 人脸联合语音身份认证:https://github.com/tsstss123/faceUnionVoiceRecognition 身份证识别简易版:https://github.com/novioleo/simplest_idcard_recognizition 文本检测ctpn: ...
分类:编程语言   时间:2018-01-14 21:18:57    阅读次数:465
[Python Study Notes] Socket模拟ssh并记录遇到的问题
服务器端: 1 # The_author = 'liu66' 2 # By python3.x 3 # -*- coding = utf-8 -*- 4 5 6 import socket,os 7 8 server=socket.socket() 9 server.bind(("localhost ...
分类:编程语言   时间:2018-01-14 21:18:07    阅读次数:121
Python知识点
* 生成器 (*generator*) 使用生成器函数或生成器表达式构建的迭代器。无需迭代集合就可能生成值。 相比于迭代器,生成器适合一些需要处理巨大的数据集合的场景。因为不需要在事先就准备好整个迭代过程中的所有元素。即无序将对象的所有元素都存入内存之后,才开始进行操作。可以有效的节省内存。 但是由... ...
分类:编程语言   时间:2018-01-14 21:17:27    阅读次数:110
python 模块
random 模块 之大抽奖模块 Python中的random模块用于生成随机数。下面介绍一下random模块中最常用的几个函数。 random.random random.random()用于生成一个0到1的随机符点数: 0 <= n < 1.0 random.uniform random.uni ...
分类:编程语言   时间:2018-01-14 20:23:15    阅读次数:213
Python与数据结构[0] -> 链表[1] -> 双链表与循环双链表的 Python 实现
双链表 / Doubly Linked List 目录 1 双链表 双链表和单链表的不同之处在于,双链表需要多增加一个域(C语言),即在Python中需要多增加一个属性,用于存储指向前一个结点的信息。 完整代码 1 from linked_list import LinkedList, test 2 ...
分类:编程语言   时间:2018-01-14 20:23:00    阅读次数:160
python第一天
#Author:ge jian_username = 'gejian'_password = '123'user = input("请输入用户名:")pwd = input("请输入密码:")if user == _username and pwd == _password: print("welc ...
分类:编程语言   时间:2018-01-14 20:22:41    阅读次数:108
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!