Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3652692
  • 博文数量: 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-22 13:51:58

https://www.cnblogs.com/lihanx/p/5947178.html1.查看一下当前Python的版本$ python -V注意这里“V”是大写的,记得当前python的版本,之后会用得到。我的当前版本是2.6.6。 2.安装过程中需要拥有root权限,所以在一开始就获取root$ su root 注意这里执行命令后提示输入密码,但是输入过.........【阅读全文】

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

发布时间: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.........【阅读全文】

阅读(11444) | 评论(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.........【阅读全文】

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

发布时间:2019-01-22 13:50:23

数据类型,转化,序列化,反序列化新建了一个文件:json.pyimport  jsondata = [{'a':1,'b':2,'c':3,'d':4,'e':5}]json = json.dumps(data)print json执行结果报:AttributeError: 'module' object has no attribute 'dumps'解决方案:就是因为命名的文件名json给python内置的json重名了,所有在导入的时候是我.........【阅读全文】

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

登录 注册