
python
Vinson_Yin
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux Gui 窗口对话和窗口操作
可以实现窗口对话eg: zenity --error --width 300 --text "Permission denied. Cannot write to the file."ChosenDate=$(zenity --calendar --text "Choose a date" --title "How-To Geek Rota" --day 1 --month 9 --year 2019);echo $ChosenDateResponse=$(zenity --entry --原创 2024-07-23 15:56:09 · 377 阅读 · 0 评论 -
python re 正则表达式,非某个字符串
([TR]X)?\*(\w+)?', flit)原创 2024-07-19 17:24:23 · 361 阅读 · 0 评论 -
python time 计算日期
计算week因为issue report 很多情况下按周report,所以用Python实现自动issue tracking时难免会用第几周作为图形的下标 def cal_label(self, date): m = re.search('(\d+)([^\d])(\d+)([^\d](\d+))', date) if self.step == 'all':原创 2017-03-03 22:46:03 · 1543 阅读 · 0 评论 -
python 转载他人的知识
转载python1.python 性能鸡汤 http://blog.youkuaiyun.com/lainegates/article/details/90380492.Python 并发 multiprocessing-Process http://blog.youkuaiyun.com/lainegates/article/details/9058819转载 2016-08-27 20:15:43 · 609 阅读 · 0 评论 -
python print 不输出换行符
python2: 在print末尾添加逗号即可 print 'string', eg: print "this is tree", python3 : print('string',end=' ')原创 2016-10-09 20:44:26 · 6515 阅读 · 0 评论 -
python 建立树形数据结构
写之前从网上找过一些资料,不过部分是用class 实现的,结合数据结构原理,但是code稍微复杂其实这边的需求还是很简单的所以就想用简单的方式实现, 就是现有的file 中class 的extends 关系有点乱,想把class 的继承关系打印出来预选实现方式有两种:1.list2.dictlist 方式会用到多维数组,在数据插入的时候会很棘手,所以使用了dict方式原创 2016-10-10 00:19:09 · 8424 阅读 · 0 评论 -
python在命令行模式下查看帮助文档
1. 查看所有function dir(dict)2.查看注释dict.__doc__3.help(dict)原创 2017-01-07 18:21:37 · 3543 阅读 · 0 评论 -
Windows64 系Python、NumPy与matplotlib 安装方法
http://www.cnblogs.com/1394htw/p/5225644.html今下午想用Python跑RNN网络,结果代码在导入包numpy时并没有报错,但是在用里面的函数时报错,因小编也是新手,只学习了Python的基础语法,并没有使用过第三方包,安装了一下午还没弄好,本以为命令行不好用的,但是还真解决了问题,一、安装Python 步骤:去Pytho转载 2017-01-08 09:22:44 · 385 阅读 · 0 评论