using UnityEngine; using System.Collections; public class CameraController : MonoBehaviour { public float distance_v; public float distance_h; public ... ...
分类:
移动开发 时间:
2017-11-18 12:58:08
阅读次数:
216
python在安装时,默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报这样的错,python没办法处理非ascii编码的,此时需要自己设置将python的默认编码,一般设置为utf8的编码格式。 查阅网上,可以在程序中修改所有涉及到编码的地方,强制编码为utf8,即 ...
分类:
编程语言 时间:
2017-11-17 21:00:42
阅读次数:
148
1、首先要在开头说明编码方式为:utf-8 例如:-*- coding: utf-8 -*- 2、如果遇到字符串,立刻转化为unicode,不要使用str(),直接使用unicode() unicode_str = unicode('中文', encoding='utf-8')print unico ...
分类:
编程语言 时间:
2017-11-17 18:30:08
阅读次数:
172
[client]port = 3306socket = /tmp/mysql.sock[mysqld]log-bin = /data/mysql/bin/mysqlbinlogserver-id = 1001#binlog-do-db = ProjectM#binlog-ignore-db = my ...
分类:
数据库 时间:
2017-11-17 14:52:23
阅读次数:
209
docker学习实践之路[第一站]环境安装 docker安装 docker教程 ...
分类:
其他好文 时间:
2017-11-16 14:33:46
阅读次数:
123
1. 所需要的软件 需要安装QPST和QXDM 2. QXDM抓log (1) USB连接到设备端 (2) Load the QXDM Configurationfile (.dmc) that is provided by your Customer Engineering Representat ...
分类:
其他好文 时间:
2017-11-15 10:51:44
阅读次数:
148
最近使用python写入文件时,出现了如下的错误: 但是content的内容是unicode编码,不知道怎么和gbk扯上了关系,对content使用encode()和decode(),用gbk,utf-8,gb2312各种编码解码都没有效果; 在网上查找资料,看到一篇文章关于这个的说法:http:/ ...
分类:
Web程序 时间:
2017-11-15 00:28:27
阅读次数:
328
python默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报这样的错,python没办法处理非ascii编码的, 此时需要自己设置python的默认编码,一般设置为utf8的编码格式。 cat myutf8.py #添加如下内容,设置编码为utf8# encodin ...
分类:
编程语言 时间:
2017-11-15 00:19:37
阅读次数:
306
【python-ini】python读写ini文件 本文实例讲述了Python读写ini文件的方法。分享给大家供大家参考。具体如下: 比如有一个文件update.ini,里面有这些内容: 1 2 3 4 5 6 7 8 [ZIP] EngineVersion=0 DATVersion=5127 Fi ...
分类:
编程语言 时间:
2017-11-14 19:46:28
阅读次数:
234
using UnityEngine;using System.Collections; public class DrawStar : MonoBehaviour { public Material _mat; public Color _starColor; const float minDist ...
分类:
其他好文 时间:
2017-11-14 18:34:34
阅读次数:
125