文章分类 -  python

上一页 1 2 3 4 5

write image , tfrecord
摘要:https://blog.csdn.net/index20001/article/details/73843070 https://tensorflow-notes.readthedocs.io/zh_CN/latest/tfrecord.html https://segmentfault.com/ 阅读全文

posted @ 2019-01-03 15:23 cdekelon 阅读(163) 评论(0) 推荐(0)

byte string tfrecord
摘要:https://tensorflow-notes.readthedocs.io/zh_CN/latest/tfrecord.html https://segmentfault.com/a/1190000004450876 - Bytes 对象只负责以二进制字节序列的形式记录所需记录的对象,至于该对象 阅读全文

posted @ 2019-01-03 14:11 cdekelon 阅读(194) 评论(0) 推荐(0)

如何简单地理解Python中的if __name__ == '__main__'
摘要:https://blog.csdn.net/yjk13703623757/article/details/77918633 如何简单地理解Python中的if __name__ == '__main__' https://blog.csdn.net/yjk13703623757/article/de 阅读全文

posted @ 2019-01-02 14:35 cdekelon 阅读(86) 评论(0) 推荐(0)

认识 enumerate
摘要:http://www.runoob.com/python/python-func-enumerate.html enumerate() 函数用于将一个可遍历的数据对象(如列表、元组或字符串)组合为一个索引序列,同时列出数据和数据下标,一般用在 for 循环当中 阅读全文

posted @ 2018-12-26 17:26 cdekelon 阅读(85) 评论(0) 推荐(0)

from collections import defaultdict 的用法
摘要:转自 https://blog.csdn.net/dpengwang/article/details/79308064 认识defaultdict:当我使用普通的字典时,用法一般是dict={},添加元素的只需要dict[element] =value即,调用的时候也是如此,dict[element 阅读全文

posted @ 2018-12-26 16:51 cdekelon 阅读(5844) 评论(1) 推荐(0)

To add current dir to python path, use export PYTHONPATH=`pwd`
摘要:https://stackoverflow.com/questions/2325923/how-to-fix-importerror-no-module-named-error-in-python 阅读全文

posted @ 2018-12-21 17:23 cdekelon 阅读(384) 评论(0) 推荐(0)

@staticmethod 或 @classmethod
摘要:https://blog.csdn.net/reallocing1/article/details/53394697 @classmethod - 这个方法(即函数)的()里的参数可以是这个类。 - 把这个方法(即函数)挪到类的外面也是可行的。 @staticmethod: 有一些和类相关函数,但不 阅读全文

posted @ 2018-12-21 15:38 cdekelon 阅读(152) 评论(0) 推荐(0)

How to fp16 image to fp32 image; Python numpy.transpose 详解
摘要:or 将Numpy数组保存为图像 https://vimsky.com/article/3697.html (good link) Python numpy.transpose 详解 From: https://blog.csdn.net/u012762410/article/details/789 阅读全文

posted @ 2018-12-17 16:51 cdekelon 阅读(713) 评论(0) 推荐(0)

(python进阶!!!!!!)Improve your python with this link!!!!!!!!! https://www.programcreek.com/python/example/89389/cv2.resize
摘要:https://www.programcreek.com/python/example/89389/cv2.resize https://programtalk.com/python-examples/ 阅读全文

posted @ 2018-12-17 11:37 cdekelon 阅读(221) 评论(0) 推荐(0)

Python 语 言程序设计考试大纲(2018 年版)
摘要:全国计算机等级考试二级Python 语言程序设计考试大纲(2018 年版) From: http://ncre.neea.edu.cn/res/Home/1805/c707e8b7df16fc622921481aca19ed6a.pdf 基本要求 1. 掌握Python 语言的基本语法规则。2. 掌 阅读全文

posted @ 2018-12-11 11:04 cdekelon 阅读(557) 评论(0) 推荐(0)

strip方法, 去掉空格或指定字符
摘要:http://www.runoob.com/python/att-string-strip.html Python strip() 方法用于移除字符串头尾指定的字符(默认为空格或换行符)或字符序列。 注意:该方法只能删除开头或是结尾的字符,不能删除中间部分的字符 阅读全文

posted @ 2018-11-27 15:20 cdekelon 阅读(712) 评论(0) 推荐(0)

With statement
摘要:https://www.pythonforbeginners.com/files/reading-and-writing-files-in-python With Statement You can also work with file objects using the with stateme 阅读全文

posted @ 2018-11-27 14:34 cdekelon 阅读(79) 评论(0) 推荐(0)

/usr/src/tensorrt$ cat bin/download-digits-model.py
摘要:/usr/src/tensorrt$ cat bin/download-digits-model.py #!/usr/bin/env python import sys import os.path import argparse import requests import json class ModelDownloader(object): """ Downlo... 阅读全文

posted @ 2018-03-13 10:46 cdekelon 阅读(99) 评论(0) 推荐(0)

python 面试
摘要:http://blog.csdn.net/alvine008/article/details/39229057 阅读全文

posted @ 2018-03-09 12:38 cdekelon 阅读(37) 评论(0) 推荐(0)

How to debug in python
摘要:Add below line to where you want to check. import pdb; pdb.set_trace() # stop here. 阅读全文

posted @ 2018-03-07 17:22 cdekelon 阅读(82) 评论(0) 推荐(0)

with as
摘要:http://www.maixj.net/ict/python-with-as-14005 (good) https://www.ibm.com/developerworks/cn/opensource/os-cn-pythonwith/ (understand the process) 阅读全文

posted @ 2018-03-06 11:12 cdekelon 阅读(64) 评论(0) 推荐(0)

argparse
摘要:Good: https://blog.ixxoo.me/argparse.html http://kuanghy.github.io/2016/06/30/python-argparse Result: 阅读全文

posted @ 2018-03-05 14:59 cdekelon 阅读(161) 评论(0) 推荐(0)

import imatplotlib.pyplot as plt ,,, sklearn
摘要:>>> A = np.array([[ 1,0,0], [0,1,0], [1,1,0]]) >>> A array([[1, 0, 0], [0, 1, 0], [1, 1, 0]]) >>> print A [[1 0 0] [0 1 0] [1 1 0]] >>> print A.T [[1 0 1] [0 1 1] [0 import ma... 阅读全文

posted @ 2018-03-01 16:32 cdekelon 阅读(707) 评论(0) 推荐(0)

上一页 1 2 3 4 5

导航