上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: import threading from time import ctime,sleep def music(func): for i in range(2): print("I was listening to %s. %s" %(func,ctime())) sleep(1) def move(func): for i in range... 阅读全文
posted @ 2018-12-28 16:20 彩色的梦 阅读(102) 评论(0) 推荐(0) 编辑
摘要: import re import os import urllib #根据给定的网址来获取网页详细信息,得到的html就是网页的源代码 def getHtml(url): page = urllib.request.urlopen(url) html = page.read() return html.decode('UTF-8') def getImg(html)... 阅读全文
posted @ 2018-12-27 10:34 彩色的梦 阅读(500) 评论(0) 推荐(0) 编辑
摘要: /*** * * 编辑器创建新窗口,并设置窗口布局 * * * * * */ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class EditorWindowTest : EditorWindow { ... 阅读全文
posted @ 2018-12-14 16:54 彩色的梦 阅读(214) 评论(0) 推荐(0) 编辑
摘要: * -----英雄的移动控制 * * * * */ using System.Collections; using System.Collections.Generic; using UnityEngine; public class HeroMovingControl : MonoBehaviour { public float FloHeroMovingSpe... 阅读全文
posted @ 2018-10-19 16:14 彩色的梦 阅读(479) 评论(0) 推荐(0) 编辑
摘要: * -----英雄的移动控制 * * * * */ using System.Collections; using System.Collections.Generic; using UnityEngine; public class HeroMovingControl : MonoBehaviour { public float FloHeroMovingSpe... 阅读全文
posted @ 2018-10-19 15:38 彩色的梦 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 百分比滑动进度,sys.stdout()函数。 阅读全文
posted @ 2018-09-27 21:25 彩色的梦 阅读(120) 评论(0) 推荐(0) 编辑
摘要: /********* * * 面板移动控制 * * * * * */ using System.Collections; using System.Collections.Generic; using UnityEngine; public class PanelMovingControl : MonoBehaviour { public Anima... 阅读全文
posted @ 2018-09-27 21:22 彩色的梦 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 选中将要制作的3D物体,window Animation 录制,选中的AddKey在之间的节点前点左键。 阅读全文
posted @ 2018-09-26 21:43 彩色的梦 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 通过拖拽的方式移动面板,在单个界面看到多个视图面板 需要导入UnityEngine.EventSystems; 事件命名空间 进而继承两个重要的接口IBeginDragHandler,IDragHandler,继承接口中的方法必须全部实现,直接右键转到定义,且方法必须为public。 之后对滑动面板 阅读全文
posted @ 2018-09-26 21:40 彩色的梦 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 利用字符串的形式去对象中寻找成员 导入单个模块: commons为公共模块,inp为输入 func=getattr(commons,inp) 利用反射最大的好处是不用单个单个导入,而通过getattr()可以实现多个直接导入。 导入多个模块: m,f=inp.split('/'),m是模块,f是方法 阅读全文
posted @ 2018-09-25 21:33 彩色的梦 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页