# class Person: # def play(self, tools): # 通过参数的传递把另外一个类的对象传递进来 # tools.run() # print("很开心, 我能玩儿游戏了") # # # class Computer: # def run(self): # print("... ...
分类:
其他好文 时间:
2018-12-19 20:55:37
阅读次数:
153
由于是自己看视频学python,总觉得不写几行代码就什么都没有学到。 找了一个写代码的网站其实只是因为这个看起来好玩。 闯关地址http://www.pythonchallenge.com/index.php 0x00 好吧,先来到第0关 python最好用的地方,计算器 2**38算出来答案,在u ...
分类:
编程语言 时间:
2018-12-18 16:01:47
阅读次数:
186
Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the form seed(x+1) = [seed(x) + STEP ...
分类:
其他好文 时间:
2018-12-18 10:59:45
阅读次数:
135
——遮罩的作用是指定一个显示对象的可见区域,即这个显示对象只在这个区域可见。 一、矩形遮罩 将一个矩形对象赋值给显示对象的 mask 属性。 【注】:这个矩形的坐标(20,20)和(30,50)是相对于被遮罩对象shp来定位的。 二、显示对象遮罩 ——显示对象的可见区域由另一个显示对象确定,可实现不 ...
分类:
其他好文 时间:
2018-12-17 20:20:38
阅读次数:
445
1 package big.data.analyse.scala 2 3 /** 4 * 链式编程原理 5 * Created by zhen on 2018/12/16. 6 */ 7 class Computer{def code = this} 8 class PC extends Compu... ...
分类:
其他好文 时间:
2018-12-16 23:41:21
阅读次数:
236
将开发过程中经常用到的内容做个备份,如下的资料是关于Android 通过网络获取图片的的内容。 package com.netimg; import android.app.Activity;import android.graphics.Bitmap;import android.graphics ...
分类:
移动开发 时间:
2018-12-16 23:38:39
阅读次数:
215
PyTorch in Action: A Step by Step Tutorial Installation Guide Step 1, donwload the Miniconda and installing it on your computer. Beacause some of clas ...
分类:
其他好文 时间:
2018-12-14 19:35:21
阅读次数:
164
使用Graphics类中的DrawImage方法,这个方法有30种重载方式,这里只介绍一种,也是我认为最直观的一种,代码如下: 1 using System.Drawing; 2 3 namespace kq.Utils 4 { 5 public static class CommonTools 6 ...
import java.awt.*; import java.applet.*; public class GUI3 extends Applet{ public void paint(Graphics g) { int x = 50; int y = 50; int width = 5; int ... ...
分类:
移动开发 时间:
2018-12-11 01:31:31
阅读次数:
199
import java.awt.*; import java.applet.Applet; public class GUI2 extends Applet{ public void paint(Graphics g) { g.setFont(new Font("黑体",Font.PLAIN,24)... ...
分类:
移动开发 时间:
2018-12-11 00:30:03
阅读次数:
201