码迷,mamicode.com
首页 >  
搜索关键字:python 笔记    ( 201513个结果)
Unity3D 连接MySQL数据库笔记3-SQL建表
打开 Navicat MySQL管理工具连接到数据库选择 test 数据库点击 查询输入对应的 sql命令create table tuser( uname varchar(20) not null primary key, upwd varchar(20) not null...
分类:数据库   时间:2014-06-15 21:55:52    阅读次数:325
PYTHON对文件及文件夹的一些操作
python中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目录: os.mkdir("file") 创建目录 复制文件....
分类:编程语言   时间:2014-06-15 21:53:58    阅读次数:247
Unity3D 连接MySQL数据库笔记4-Unity3d代码
新建Unity3D项目新建一个 Plugins文件夹把所需要的DLL放到Plugins中新建C#脚本 命名为ToMysql.cs不多说了 ,直接上代码,很简单 有注释 ,大家一看就明白了using UnityEngine;using System;using System.Collections;u...
分类:数据库   时间:2014-06-15 21:44:54    阅读次数:380
[leetcode]Permutation Sequence @ Python
原题地址:https://oj.leetcode.com/submissions/detail/5341904/题意:The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of ...
分类:编程语言   时间:2014-06-15 21:33:16    阅读次数:270
Swift学习笔记(5)--数组
数组的下标从0开始计数,相关方法属性涉及到下标时也从0开始计数1.定义://1.可变数组var cityArray = ["Portland","San Francisco","Cupertino"]//2.不可变数组let cityArray2 = ["Portland","San Francis...
分类:其他好文   时间:2014-06-15 21:26:06    阅读次数:263
[leetcode]Reverse Nodes in k-Group @ Python
原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod...
分类:编程语言   时间:2014-06-15 21:24:43    阅读次数:293
jQuery学习笔记
选择器(更详细看w3c官网教程)$("p") //选择标签$("#test") //选择id$(".class") //选择class$(“divp”) //选择div下的p.first();.last();.eq(n);.filter(".intro").not(".intro")SyntaxDe...
分类:Web程序   时间:2014-06-15 21:03:49    阅读次数:248
PERL学习笔记---正则表达式的应用
使用m//匹配//这是m//(模式匹配)的一种简写。同qw//操作一样,可以使用任何成对的分隔符。因此,可以使用m(fred), m, m{fred}, m[fred],或者m,fred,, m!fred!, m^fred^,其它非成对的分隔符也可以不区分大小写:/iif(/yes/i) {#大小写...
分类:其他好文   时间:2014-06-15 20:27:15    阅读次数:278
【美妙的Python之二】Python初步
美妙的Python之Python起步 简而言之:Python 是能你无限惊喜的语言,与众不同。 1.动态类型: Python是一种动态类型语言,不须要预先声明变量的类型,变量的类型和值在赋值那一刻动态地初始化。这一点与C/C++,Java等静态类型语言全然不同,静态类型在编译阶段就...
分类:编程语言   时间:2014-06-15 20:18:35    阅读次数:239
[leetcode]Longest Substring Without Repeating Characters @ Python
原题地址:https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/题意:Given a string, find the length of the longest substring witho...
分类:编程语言   时间:2014-06-15 19:51:00    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!