上一页 1 ··· 3 4 5 6 7

2019年2月1日

类型转换

摘要: int("123") 123 int("3f",16) 63 bytes([72,9,64]) b'H\t@' list("abc") ['a', 'b', 'c'] set(["one","two"]) {'one','two'} [int(x) for x in ('1','29','-3')] 阅读全文

posted @ 2019-02-01 21:13 冬天里暖阳 阅读(81) 评论(0) 推荐(0) 编辑

python 中 类型转换 bytes

摘要: https://www.cnblogs.com/sesshoumaru/p/5980090.html 阅读全文

posted @ 2019-02-01 21:04 冬天里暖阳 阅读(751) 评论(0) 推荐(0) 编辑

2019年1月27日

常见的打开图片

摘要: 用matplotlib打开图片,展示图片,转灰度,展示一个维度 import matplotlib.pyplot as plt # plt 用于显示图片import numpy as np import matplotlib.image as mpimg dog = mpimg.imread('do 阅读全文

posted @ 2019-01-27 12:48 冬天里暖阳 阅读(241) 评论(0) 推荐(0) 编辑

2019年1月25日

python常见的数据结构

摘要: https://www.cnblogs.com/5poi/p/7466760.html 阅读全文

posted @ 2019-01-25 22:03 冬天里暖阳 阅读(106) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7

导航