Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3657486
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

发布时间:2019-01-21 10:41:15

[root@localhost /]# cat threadzlg.py#!/bin/pythonimport threadingimport timeclass mythread(threading.Thread):    def __init__(self,name,tim):        threading.Thread.__init__(self)        self.name=name   &n.........【阅读全文】

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

发布时间:2019-01-21 10:29:00

[root@localhost /]# cat list.py #!/bin/pythonfrom random import randintd=[randint(-10,10) for _ in range(10)]s={'student%d' %i:randint(-10,10) for i in range(10)}t=[x for x in d if x >=0]#if (4,3)>(3,4):#    print 'aaaaaaaaaaaa'r=[(y,x) for x,y in s.items()]print sprint rpr.........【阅读全文】

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

发布时间:2019-01-04 15:08:39

转载自:https://riverdba.github.io/2017/08/29/sqlite3-install-for-python/摘要:使用sqlmap时遇到一个问题,需要给python安装sqlite3。记录下安装过程!安装sqlite3尝试使用pip安装,安装失败:[root@mysql1 src]# pip install sqlite3Collecting sqlite3 Using cached sqlite3-99.0.t.........【阅读全文】

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

发布时间:2018-12-29 10:39:37

在python中有如下代码:    class father():        def __init__(self,age):            self.age = age;        def get_age(self):          .........【阅读全文】

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

发布时间:2018-12-15 15:03:53

Linux中Python环境变量的设置Python环境变量的查看与添加这种添加python path环境变量的方式,只在当前脚本程序范围内起作用。若要在整个Linux环境中起作用,就要添加设置Linux的PYTHONPATH变量。jxj@ubuntu1:~/TFFRCNN$ pythonPython 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on li.........【阅读全文】

阅读(1813) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册