- 博客(16)
- 资源 (1)
- 收藏
- 关注
原创 unity 系统分享
public void ShareImage( String path, String Name ) { File file = new File( path, Name ); Uri imageUri = Uri.fromFile(file); Intent imageIntent = new Intent(Intent.ACTION_SEND); ...
2018-09-11 10:16:11
578
原创 unity 网页 基于 UniWebView 做UGUI 适配
// 在UniWebViewHelper添加此函数; public static int ConvertPixelToPoint(float pixel, bool width) {#if UNITY_IOS && !UNITY_EDITOR float scale = 0; if (width) { scale =
2018-02-07 19:45:04
4532
5
原创 python 06 -file
import os,time,sys;# -*- coding:utf-8 -*-#Author: SuBin Shen#文件操作;#rU 或 Ua 以读方式打开, 同时提供通用换行符支持 (PEP 278)#w 以写方式打开,#a 以追加模式打开#r+ 以读写模式打开#w+ 以读写模式打开#a+ 以读写模式打开#rb 以二进制读
2018-01-15 14:11:51
202
原创 python 05集合
# -*- coding:utf-8 -*-#Author: SuBin Shen#集合 set 类似于C++ set_List1 = set([13,7,8,8,18,81,5]);_List2 = set([2,10,33,55,7]);# 取出交集的元素;print(_List1.intersection(_List2));print(_List1&_List2);# 合并
2018-01-10 18:38:30
152
原创 python 04 字典简单操作
#Author: SuBin Shen# -*- coding:utf-8 -*-#字典操作; #字典是无序的info = { "name":"yuhuan","age":23,"form":"hebei"};#获取#get 检查是否存在;print(bool(info.get("age")));#2.xprint(info.has_key("age"))#3.0print("
2018-01-10 17:16:38
177
原创 python 3 字符串操作
# -*- coding:utf-8 -*-#Author: SuBin Shen# 字符串常用操作;_Name = " mr shen";# 首字母大写;print(_Name.capitalize());# 包含数量;print(_Name.count("m"));#将元素放在50个-中间;print( _Name.center(50,"_"));# 字符串是否是以com结
2018-01-10 16:18:45
176
原创 Python 02
# -*- coding:utf-8 -*-import sys;import os;import copy;#import study1;#Author: SuBin Shen;#2.1 简单库文件介绍;#python的环境变量;print(sys.path);#当前文件的相对路径;print(sys.argv);# 获取传来参数,类似于给函数传参;#print(sys.
2018-01-10 15:08:27
144
原创 python学习 01
# -*- coding:utf-8 -*-import getpass;# 1.0 字符串简单操作;# 字符串相加;_Name = "ZhiWaKeJi";_Name = _Name + _Name;_Name = "ZhiWa%s"%("KeJi");#格式化字符串;print( "my name is {name}".format(name = "zhiwakeji"))p
2018-01-09 16:04:40
146
原创 小白双链表
include “stdafx.h”include “PlayerInfo.h”include include using namespace std; using namespace Player; struct Peopel { int age; string from; string name; Peopel* pHead; Peopel
2017-12-18 19:40:18
143
翻译 小白链表
// My C++.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "PlayerInfo.h"#include #include #include #include using namespace std;using namespace Player;struct Peopel
2017-12-06 19:20:55
223
原创 unity 关闭弹出android 提示框
@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK ) { AlertDialog isExit = new AlertDialog.Builder(this).create(); isExit.setTitle("提示"
2017-11-23 10:28:43
991
原创 unity分享链接打开APP
protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);Context context = getApplicationContext();mCurrActivity = this;GetParamters();}@Overrideprotect
2017-11-23 10:25:39
1303
翻译 android 复制功能
public void copyTextToClipboard(final String text) { runOnUiThread(new Runnable() { @Override public void run() { ClipboardManager clipboardMana
2017-11-23 10:22:39
2205
翻译 android 打开应用设置
private void GetAppDetailSettingIntent() { Activity activity = mCurrActivity; Intent localIntent = new Intent(); localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
2017-10-24 10:23:31
1290
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人