05 2018 档案
摘要:栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。: 1.申请方式 堆是由程序员自己申请并指明大小,在c中malloc函数 如p1 = (char
阅读全文
摘要:# _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/21 0:07"def interval(start,stop=None,step=1): if stop is None: start,stop=0,start #如果
阅读全文
摘要:https加密算法: http层面通信接口通过ssl(安全套接字)或者tls(安全传输)来代替。(注释:安全套接层 (SSL) 是一种协议,支持服务通过网络进行通信而不损害安全性。它在客户端和服务器之间创建一个安全连接。然后通过该连接安全地发送任意数据量。举例而言,如果通过在线应用程序处理信用卡来处
阅读全文
摘要:不多说先上代码: 在C语言中: 在python中:
阅读全文
摘要:计算机算法:一步步将输入转化为输出所需要输出的过程 oh,no! 这里应该先介绍数据存储和存储在磁盘内: 计算机的数据存储:通常我们的计算机以10进制进行运算,比如:2+2 = 4,而计算机通过2进制的方式进行计算:for example 2在计算机内部标识为:0010 由于是2进制,当进行+法运算
阅读全文
摘要:#!/usr/bin/pythonimport wxfrom wx.lib.buttons import GenBitmapTextButtonclass Browser(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__ini
阅读全文
摘要:#!/usr/bin/python# -*- coding: utf-8 -*-import wxclass Example(wx.Frame): def __init__(self, *args, **kw): super(Example, self).__init__(*args, **kw)
阅读全文
摘要:#!/usr/bin/python# spreadsheet.pyfrom wx.lib import sheetimport wxclass MySheet(sheet.CSheet): def __init__(self, parent): sheet.CSheet.__init__(self,
阅读全文
摘要:# _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/15 15:05"import wximport sysclass Frame(wx.Frame): def __init__(self,parent,id,title)
阅读全文
摘要:# _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/15 16:20"import wxfrom wx.py.shell import ShellFramefrom wx.py.filling import Filling
阅读全文
摘要:#!/usr/bin/env python3# -*- coding: utf-8 -*-import wximport randomclass Tetris(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent,
阅读全文
摘要:众所周知,GUI代码是难于阅读和维护的,并且看上去总是一塌糊涂。我们将讨论三个驯服你的UI代码的技术。我们将讨论重构代码以使其易于阅 读、管理和维护。 另一个方面是显示代码和基本的处理对象之间的处理,这也 是UI程序员头痛的地方。 MVC(ModełView/Controller)设计模式是这样一种
阅读全文
摘要:# _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/14 18:47"import wxclass MyFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self
阅读全文
摘要:输出结果: 接着我在GitHub上查询了相关文档: https://github.com/kivy/kivy/issues/3889 下载了kivy.deps.sdl2: C:\Users\usth1>pip install kivy.deps.sdl2 输出结果: 成功! 原链接 https://
阅读全文
摘要:# _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/13 21:33"import wximport osclass MainWindows(wx.Frame): def __init__(self,parent,id,t
阅读全文
摘要:# _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/11 18:21"from math import hypotclass Vecotr: def __init__(self,x=0,y=0): self.x = x s
阅读全文
摘要:# _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/10 21:14"import psutilimport datetimefrom subprocess import PIPEmem = psutil.virtual_
阅读全文