摘要: # class phone: # ''' # 限制,不允许添加属性 # ''' # __slots__=["cpu"] # def call(self,num): # print("用cpu:%s打电话给%s"%(slef.cpu,num)) #print(phone.__dict__) #ipho 阅读全文
posted @ 2019-09-25 22:55 Cyber_Shady 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 class Wangjianlin: def __init__(self): self._name="王健林" self.__post="万达董事长" self._money=10000000000 def buy(self,name,price): if price>1 阅读全文
posted @ 2019-09-25 22:54 Cyber_Shady 阅读(129) 评论(0) 推荐(0) 编辑
摘要: int result[2];int* SM(int* A, int n) { int max, min; max = min = A[0]; for (int i = 1; i < n; i++) { if (A[i] > max) { max = A[i]; } if (A[i] < min) { 阅读全文
posted @ 2019-09-14 22:42 Cyber_Shady 阅读(490) 评论(0) 推荐(0) 编辑
摘要: int oujilide(int m, int n) { int r; r = m - (m / n) * n;//这里的除法直接就是取地板 if (r == 0) return n; else { m = n; n = r; //m置n,n置r return oujilide(m,n); }} 阅读全文
posted @ 2019-09-14 22:29 Cyber_Shady 阅读(367) 评论(0) 推荐(0) 编辑
摘要: import copy l=[1,3.14,[2,4,6]] l2=copy.copy(l) print(l) print(l2) print(id(l)) print(id(l2)) print(' ') for i in l: print(id(i)) print(' ') for i in l 阅读全文
posted @ 2019-09-14 21:54 Cyber_Shady 阅读(117) 评论(0) 推荐(0) 编辑
摘要: import win32gui import win32api,win32con import time ''' 需要执行下面命令 pip install pywin32 ''' # 获取屏幕宽高 screen_width=win32api.GetSystemMetrics(win32con.SM_ 阅读全文
posted @ 2019-09-14 21:52 Cyber_Shady 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include<windows.h> int WinMain( HINSTANCE hInstance,//应用程序的实例句柄 HINSTANCE hPrevInstance,//上一个应用程序的句柄。在win32环境下,参数一般为null,不起作用 LPSTR IpCmdline,//char* 阅读全文
posted @ 2019-08-31 15:42 Cyber_Shady 阅读(220) 评论(0) 推荐(0) 编辑
摘要: mfc不支持跨平台。qt则可以。 mfc可以理解为一个第三方的工具库。 api程序接口,也就是团队的交互。不必关心底层的算法。 windows1000个api 文件命名为点c 窗口的划分。 父窗口子窗口 句柄:开发的时候各种的资源,系统给你一个标识号,首字母都是h,也就是handle 消息队列的一个 阅读全文
posted @ 2019-08-31 13:12 Cyber_Shady 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 不久前粗浅的学过html,css和js,但是缺乏相关的实践,希望这次能有所提高吧 觉得比较好的视频课程(在b站) https://www.bilibili.com/video/av40455083?from=search&seid=11278098264473251788 阅读全文
posted @ 2019-08-25 22:45 Cyber_Shady 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 告诫大家下载软件一定要到官网下载,拒绝这类随意篡改你电脑的第三方(并不是所有的第三方都能够说到做到) 卸载金山毒霸 https://jingyan.baidu.com/article/9989c746e3afedf648ecfefd.html 如何禁用任务管理器 删除任务管理器方法https://j 阅读全文
posted @ 2019-08-24 16:36 Cyber_Shady 阅读(177) 评论(0) 推荐(0) 编辑