python编程学习笔记
文章平均质量分 64
qq_40121643
这个作者很懒,什么都没留下…
展开
-
Python编程时候,导入模块失败
原因是py名字包含中文字符,改成英文的就可以了,找了大半天原因原创 2018-03-23 15:59:30 · 1454 阅读 · 0 评论 -
OPENCV视频每帧的写入
方法一:使用opencvimport cv2cap = cv2.VideoCapture(0)ret,fram = cap.read()fourcc = cv2.VideoWriter_fourcc('M', 'P', '4', '2')size = (int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)), int(cap.get(cv2.CAP_...原创 2018-06-05 15:23:31 · 981 阅读 · 0 评论 -
Python学习笔记之--实验室燃烧分析仪vie数据提取---生成excel文件
# -*- coding: utf-8 -*-import osimport xlwtinput("Please click enter to start !")print("Please wait ...")path=os.getcwd()+'\\'Excel=xlwt.Workbook(encoding='utf-8')table=Excel.add_sheet("vie")...原创 2018-04-24 10:28:17 · 235 阅读 · 1 评论 -
python学习笔记之pyinstaller使用方法
pyinstaller 安装pip install pyinstaller0.pyinstaller -F test.py 生成单个exe,并且会弹出dos (最佳选择)1.pyinstaller -F -w test.py 生成单个exe,但不会弹出dos窗口(脚本中不能还有print等输出输入命令)2.pyinstaller -w test.py 生成的exe会弹出dos窗口 ...原创 2018-04-24 10:20:31 · 296 阅读 · 0 评论 -
python学习笔记之TensorFlow tensorboard可视化
# coding: utf-8# In[1]:import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datafrom tensorflow.contrib.tensorboard.plugins import projector# In[2]:# 载入数据集mnist = in...原创 2018-04-18 14:17:22 · 245 阅读 · 0 评论 -
python学习笔记之tensorboard绘制结构曲线分析各参数
# coding: utf-8# In[2]:import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data# In[3]:# 载入数据集mnist = input_data.read_data_sets("MNIST_data", one_hot=True)# 每个批次...原创 2018-04-16 14:04:47 · 2870 阅读 · 0 评论 -
python学习笔记之tensorboard
# coding: utf-8# In[2]:import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data# In[3]:# 载入数据集mnist = input_data.read_data_sets("MNIST_data", one_hot=True)# 每个批次...原创 2018-04-15 22:20:44 · 623 阅读 · 0 评论 -
Python学习笔记之下载在线视频(芳华)
本笔记基于Python3.6目地:下载只能在线观看的视频,并保存为任意的视频格式源码:import requests#下面两行是取消不安全请求提示,不然会一直报警告{InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate}from requests.packages.urllib3....原创 2018-03-11 19:22:58 · 352 阅读 · 0 评论 -
Python学习笔记之12306抢票
本笔记基于Python3.6主要涉及到爬虫cookie的处理,特别使用,对今后的爬虫意义深重主要实现了: 1. 12306登录验证码验证 2,12306账号的登录 3, 12306余票查询直接贴上源码:# !/usr/bin/env python# _*_ coding:utf-8 _*_import ssl#z证书i...原创 2018-03-11 19:28:27 · 301 阅读 · 0 评论 -
面向对象学习之pygame坦克大战
经过一天多的奋战,查阅文献,参考别人的代码等等,完成了第一个面向对象的小项目,也深深体会到面向对象编程思想在游戏编程中所扮演的角色。厉害!!!!附上代码,参考了别人的代码,以及对他们代码的完善,又加上了自己的一些东西,收获颇深。import pygameimport sysimport timefrom pygame.locals import *from random impo...原创 2018-12-17 15:38:44 · 542 阅读 · 1 评论