码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
第一章总结
public:公共的 static:静态的 void:空的 class:类 print:打印 line:排 problem:问题 out:输出 main:主要的 system:系统 程序:是为了让计算机执行某些操作或解决某个问题二编写的一系列有序指令的集合. java包括编程语言和相关的技术 jav ...
分类:其他好文   时间:2016-07-05 15:36:00    阅读次数:133
ehcache 缓存
一:详细配置步骤 1,添加ehcache.xml文件 将ehcache.xml文件添加到src路径下面。ehcache.xml文件内容如下 [html] view plain copy print? <ehcache> <diskStore path="java.io.tempdir" /> <de ...
分类:系统相关   时间:2016-07-05 14:15:45    阅读次数:176
Helpers\Data
Helpers\Data Data helper contains a bunch of useful methods for looking at and altering your data. Data::pr($data) Returns the data inside a print_r w ...
分类:其他好文   时间:2016-07-05 13:42:42    阅读次数:96
python 操作mysql数据库
python 操作mysql数据库,包括创建表,删除表,插入数据,删除数据,修改数据等操作。 # -*- coding: utf-8 -*-import mysql.connectorimport os class MySqlDB: #是否打印sql print_sql = True #数据库连接 ...
分类:数据库   时间:2016-07-05 12:20:06    阅读次数:259
每个py文件里面的内建函数(也叫私有函数)
内建函数 # !/usr/bin/env python # -*- coding:utf-8 -*- """ 每个py文件都有自己的私有函数 print(vars()) 可以查看 如果在导入模块的时候,这个模块是一个目录的话下需要在里面创建一个__init__的文件 """ #print(vars( ...
分类:其他好文   时间:2016-07-05 12:17:29    阅读次数:145
lua 协程
--coroutineapi:create,resume,yield,wrap.running,status--coroutinestatus:suspend,running,normal,deadlocalstop=function()returncoroutine.yield(7,9)endlocalco=coroutine.create(function(a,b)print("co-body1:",a,b)localm1,m2=coroutine.yield(1,3,5)print("co-body2:..
分类:其他好文   时间:2016-07-05 06:39:12    阅读次数:394
Python替换文件内容(文件处理)
#需求用Python来替换掉文件里面的内容#脚本内容如下#!/usr/bin/envpython #_*_coding:utf-8_*_ importsys,os #小于四个位置变量则退出脚本 iflen(sys.argv)<4: print"useage:./file_replace.pyold_textnew_textfilename" sys.exit() #设置三个位置变量 old_text,new_text=..
分类:编程语言   时间:2016-07-05 06:34:42    阅读次数:317
初识 Python 4
函数:判断是否是数字法一:vi11.py#!/usr/bin/pythondeffun():sth=raw_input("pleaseinputsomething:")try:iftype(int(sth))==type(1):print"%sisanumber"%sthexceptValueError:print"%sisnotnumber"%sthfun()保存并退出[root@Client-1day2]#python11.pypleaseinputsomething..
分类:编程语言   时间:2016-07-05 06:33:23    阅读次数:176
Search Range in Binary Search Tree
Given two values k1 and k2 (where k1 < k2) and a root pointer to a Binary Search Tree. Find all the keys of tree in range k1 to k2. i.e. print all x s ...
分类:其他好文   时间:2016-07-05 06:26:23    阅读次数:173
shell命令---dirname
用途说明 dirname命令可以取给定路径的目录部分(strip non-directory suffix from file name)。这个命令很少直接在shell命令行中使用,我一般把它用在shell脚本中,用于取得脚本文件所在目录,然后将当前目录切换过去。根据手册页上说的“Print NAM ...
分类:系统相关   时间:2016-07-04 22:17:45    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!