Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1751303
  • 博文数量: 297
  • 博客积分: 285
  • 博客等级: 二等列兵
  • 技术积分: 3006
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-06 22:04
个人简介

Linuxer, ex IBMer. GNU https://hmchzb19.github.io/

文章分类

全部博文(297)

文章存档

2020年(11)

2019年(15)

2018年(43)

2017年(79)

2016年(79)

2015年(58)

2014年(1)

2013年(8)

2012年(3)

发布时间:2016-03-28 15:50:18

Item 1:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.很简单的stack的应用,代码如下:点击(此处)折叠或.........【阅读全文】

阅读(1375) | 评论(0) | 转发(0)

发布时间:2016-03-10 13:34:13

1.  求2的65次方,http://www.pythonchallenge.com/pc/def/0.html 这里是求2的38次方python的int类型到底能储存多大的数字,按照道理来说64位的C INT_MAX 就是2**64. 32位的C 的INT_MAX 就是2**32. 但是python的int 类型比C语言的INT_MAX要来的大。点击(此处)折叠或打开>>> 2**6.........【阅读全文】

阅读(878) | 评论(0) | 转发(0)

发布时间:2016-01-03 17:48:27

1. 这个脚本很短,但是有几个tricky的地方,我目录下有管道一个,还有名字中带有空格文件和名字中带有‘的文件,在把他们加入到列表的时候没有问题,但是使用subprocess.popen()就会报错。所以我对cmd进行了处理。 同时使用stat.S_ISFIFO(os.stat(i).st_mode) 来剔除了pipe。点击(此处)折叠或打开.........【阅读全文】

阅读(1641) | 评论(0) | 转发(0)

发布时间:2015-12-21 10:36:49

1. 使用turtle 画一辆卡车。这个我画得很撮。 代码如下:点击(此处)折叠或打开def draw_truck():     t=Turtle()    screen=t.getscreen()    #wheels&nbs.........【阅读全文】

阅读(1623) | 评论(0) | 转发(0)

发布时间:2015-11-25 10:38:00

点击(此处)折叠或打开import sys,random,math,pygamefrom pygame.locals import *from datetime import datetime,date,timedef print_text(font,x,y,text,color=(255,255,255)):    imgText=font.ren.........【阅读全文】

阅读(2272) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

fireboyz20052010-11-10 18:27

HI, 看到你"http://bbs.chinaunix.net/viewthread.php?tid=1806065"

这里的提问,你是不是在看一本叫《Shell脚本专家指南》的书?我也在阅读,我新手,不如大家交流一下,看到不明白也可以大家一起研究研究。

我的qq是:369035906
或gtalk:jiale.chan@gmail.com

回复  |  举报
留言热议
请登录后留言。

登录 注册