![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
A-level
这个作者很懒,什么都没留下…
展开
-
VSCode Python tensorlfow 插件
推荐插件安装:https://www.cnblogs.com/wintersoft/p/11630197.htmlPythonVisual Studio IntelliCodeAnaconda Extension PackTensorFlow Snippets原创 2019-11-05 07:54:37 · 536 阅读 · 0 评论 -
解决TensorFlow的ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败
https://docs.floydhub.com/guides/environments/ TF python兼容性列表【背景】 在scikit-learn基础上系统结合数学和编程的角度学习了机器学习后(我的github:https://github.com/wwcom614/machine-learning),意犹未尽,打算再借势学习下深度学习TensorFlow。无奈安装之后遇...转载 2019-08-25 06:00:16 · 1909 阅读 · 1 评论 -
Python 在教育方面的资源列表
awesome-python-in-educationhttps://github.com/quobit/awesome-python-in-educationhttps://juejin.im/entry/593227a1a0bb9f0058c35889转载 2019-02-15 12:52:51 · 460 阅读 · 0 评论 -
python wx.frame框架属性
最近用python的wx模块写了一些窗口,其中wx.Frame是一个最重要的窗口框架,上网上查找了一些材料,其常用的属性用法如下:wx.Frame(parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE,name="frame")框架的形状和尺寸标记 w...转载 2018-02-08 12:49:07 · 2941 阅读 · 0 评论 -
用pyinstaller将Pythone 脚本生成EXE可执行文件发布
安装pyinstaller pip install pyinstallerpyinstaller官网 http://www.pyinstaller.org源码:https://github.com/pyinstaller/pyinstallerpyinstaller -F --icon=myico example.py#my.ico是图标文件与example.py同目录如果出错,说明当前pyi...原创 2018-02-08 12:47:20 · 331 阅读 · 0 评论 -
Python 3 tkinter 练习1
#Python 3 tkinter 练习import tkinter as tkroot = tk.Tk()root.title("my window")root.geometry('400x300')var = tk.StringVar()#文字变量var.set('Please hit the Button')#设置标签的初始文字label_1 = tk.Label(roo原创 2018-02-07 11:49:54 · 837 阅读 · 0 评论 -
Python面向对象——继承 实例
# coding=UTF-8class SchoolMember: '''SchoolMember是基类,代表任何学校里的成员。''' def __init__(self, name, age): #定义类的字段 self.name = name self.age = age print('(Initialized原创 2018-02-06 20:54:28 · 499 阅读 · 0 评论 -
Python类方法和实例对象的方法
class Person: def say_hi(self): print('Hello, how are you?') p = Person()p.say_hi() #这里不能由引号Person.say_hi('') #缺引号会提示错误原创 2018-02-06 19:47:26 · 397 阅读 · 0 评论 -
Python的按位取反运算符~
按位取反运算符~很少用到,今天看《byte of Python》书中举例,这里学习一下,再复习一下计算机的基础知识。按位取反运算符,用来对一个二进制数按位取反,即将0变1,将1变0,按理说十进制的5(0000 0101)按位取反应该为(1111 1010)十进制250,但是在Python中运算结果并非如此,结果如下:>>> ~-65计算机中的符号数有三种表示方法,即原码、反码和补原创 2018-02-06 10:13:05 · 19957 阅读 · 4 评论 -
Python3 TKinter 小练习温度转换
from tkinter import *from converters import * #导入conventrclass App: def __init__(self,master): self.t_conv = ScaleAndOffsetConverter('C','F',1.8,32) #创建一个Frame实例 frame原创 2018-02-05 21:48:24 · 2002 阅读 · 0 评论 -
字符串格式化
%[(name)][flags][width].[precision]typecode(name)为命名flags可以有+,-,’ ‘或0。+表示右对齐。-表示左对齐。’ ‘为一个空格,表示在正数的左侧填充一个空格,从而与负数对齐。0表示使用0填充。width表示显示宽度;precision表示小数点后精度>>>'%6.2f'% 1.235' 1.24'>>>...转载 2018-02-09 18:54:29 · 160 阅读 · 0 评论 -
Python Tkinter参考资料之(通用控件属性)
https://www.cnblogs.com/tkinter/p/5629575.html转载 2018-02-08 19:27:04 · 1071 阅读 · 0 评论