码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
python
import osdef rename_file(): file_name_list=os.listdir(r"/Users/Lily/Documents/ASU1/CodePractise/prank") print(file_name_list) saved_path=os.g...
分类:编程语言   时间:2015-05-24 06:30:50    阅读次数:197
Python Generator 运行细节验证
今天来__next__和send, 改天来throw和closeclass A: def __setattr__(self, key, val): print('set %s to %s'%(key, val)) self.__dict__[key] = valde...
分类:编程语言   时间:2015-05-24 01:19:33    阅读次数:146
二分查找
二分查找 递归 Python def binarySearch(lists,select): print 'coming',lists is_none=False if lists!=[]: cen_num=len(lists)/2 tlag=lists[cen_num] gt_list=lists[0:cen_num] ...
分类:其他好文   时间:2015-05-23 18:30:42    阅读次数:116
linux grep命令详解
简介grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、egrep和fgr...
分类:系统相关   时间:2015-05-23 15:31:56    阅读次数:160
文件上传
1.html文件 用户名: 上传图片: reg.php 文件'; print_r($_FILES);$f=$_FILES['face']; if($f['error']==4){ echo '没有文件上传'; }else if($f['size']==0){ echo '0字节的文件不用上传'; }...
分类:Web程序   时间:2015-05-23 12:43:43    阅读次数:177
简单的四则运算计算器
#include void print_menu() { printf("*********************\n"); printf("***1.add 2.sub***\n"); printf("***3.mul 4.div***\n"); printf("*********************\n"); } int add(int x,int y) { r...
分类:其他好文   时间:2015-05-23 08:52:15    阅读次数:142
传值接值,php文件互联
echo '';print_r($_POST);//接post传值print_r($_GET);//接get传值print_r($_REQUEST);///接post传值或者get传值print_r($_SERVER);超级链接传值用的是get方法 $get,$request注册get传值在标题栏显...
分类:Web程序   时间:2015-05-23 01:13:48    阅读次数:286
【C语言】进度条实现
模拟电脑程序安装的进度条 提供两种方式 代码如下: #include #include #include void proc() { int i = 0; for (i = 1; i <= 100; ++i) { printf("-"); } fflush(stdout); for (i = 1; i <= 100; ++i) { print...
分类:编程语言   时间:2015-05-23 00:02:46    阅读次数:223
Python获取、设置当前目录
1.如何获取当前工作目录(这个在操作文件的时候比较重要) solution one: import os os.getcwd() OR print os.path.abspath(sys.argv[0]) solution two: import sys print sys.argv...
分类:编程语言   时间:2015-05-23 00:00:06    阅读次数:1341
php绘图(一)
绘图要单独有个php文件,图画好后,HTML里面引入image srcgd_info()查找gd库是否开启//print_r(gd_info());if(function_exists('gd_info')){ echo ''; print_r(gd_info());}else{ echo '没有开...
分类:Web程序   时间:2015-05-22 23:57:09    阅读次数:4287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!