码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
来自百度贴吧的练习题 :求最长单词的长度和最短单词的长度。
In the function ex5 write code that will input a line of text, split it into words, and display thesewords one per line, and also print the length o.....
分类:其他好文   时间:2014-11-06 21:30:17    阅读次数:129
python 遍历文件夹 文件
import osimport os.pathrootdir = “d:\data” # 指明被遍历的文件夹for parent,dirnames,filenames in os.walk(rootdir): #三个参数:分别...
分类:编程语言   时间:2014-11-06 19:10:29    阅读次数:156
1106关于解决erp单个商品同步的问题
1.断点测试:不断的利用echo ""; print_r();die;来测试问题出在哪?先找问题出错点,再找出具体的细节。----------------------------------------------------------------------2.注意事项:erp正式地址和测试地址...
分类:其他好文   时间:2014-11-06 19:06:42    阅读次数:184
lua基础【二】lua中关于字符串的操作总结
--从从控制台输入字符串操作 str =io.read() if str=="hello" then print(str) end --lua中的字符串拼接操作 str="hello" str2="world" str3=str..str2 print(str3) --lua中的number与string类型的转换 a=10 b=tostring(a) if ...
分类:其他好文   时间:2014-11-06 17:37:49    阅读次数:233
php操作redis的两个个小脚本
redis这东西,查询起来没有mysql那么方便,只能自己写脚本了。下面是工作中写的两个小脚本第一个脚本,查找有lottery|的键,将他们全部删除|打印出来connect('127.0.0.1'); #连接服务器$m = $redis->keys('lottery|*');print_r($m);...
分类:Web程序   时间:2014-11-06 16:49:22    阅读次数:225
python基础一
1.输出: >>> print ('Hello World!') 2.输入: >>> user = input('Enter login name: ') Enter login name: oyzhx >>> user 'oyzhx' 3注释: # 从 # 开始,直到一行结束的内容都是注释。 4.运算符:+ - * / //  % ** >= == !...
分类:编程语言   时间:2014-11-06 13:08:30    阅读次数:212
二维数组和指向指针的指针
二维数组和指向指针的指针一道面试题引发的问题,首先要知道[]的优先级高于*,题目:char **p,a[6][8]; 问p=a是否会导致程序在以后出现问题?为什么?直接用程序说明:#includevoid main(){ char **p,a[6][8]; p = a; print...
分类:编程语言   时间:2014-11-06 12:46:44    阅读次数:199
Python-常用字符串转换实例
当字符串是:'\u4e2d\u56fd'>>>s=['\u4e2d\u56fd','\u6e05\u534e\u5927\u5b66']>>>str=s[0].decode('unicode_escape') #.encode("EUC_KR")>>>print str中国当字符串是:' &#199...
分类:编程语言   时间:2014-11-06 10:46:13    阅读次数:257
linux中的命令
1:cat-s:压缩空白行;移除空白行cattest.txt|tr‘\n‘‘‘;cat-T:将制表符显示为^I;cat-n:显示行号2:find:-name:根据文件名或正则表达式匹配;find.\(-name"*.txt"-o-name"*.py"\)-print-path:根据路径匹配;-maxdepath和-mindepath基于目录深度搜索;-typef(d\c\l等)文..
分类:系统相关   时间:2014-11-06 02:17:43    阅读次数:237
初识Python(1)__Python基础
Python基础一、 注释(#)Python注释语句是用“#”字符开始,注释可以在一行的任何地方开始,解释器会忽略掉该行 # 之后的所有内容。单行注释: 1 print ‘hello, world!’ #打印 hello,world多行注释:多行注释用三引号’’’将需要注释的部分括起来,例如:1 ’...
分类:编程语言   时间:2014-11-06 00:33:54    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!