随笔分类 -  python

摘要:#!/usr/bin/env python3 #-*-encoding:utf-8-*- l = [] u = [] q = 5 xx=[[col for col in range(q)] for r in range(q)] [print(i) for i in xx] for i in range(len(xx)): for v in xx: # print(v[i... 阅读全文
posted @ 2016-08-09 22:36 若丶相依 阅读(325) 评论(0) 推荐(0)
摘要:yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel -yyum groupinstall "Development tools" -yyum insta 阅读全文
posted @ 2016-06-14 14:29 若丶相依 阅读(204) 评论(0) 推荐(0)
摘要:#!/usr/bin/env python3 #-*-encoding:utf-8-*- import re import os import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import http.cookiejar filename ... 阅读全文
posted @ 2016-05-06 10:10 若丶相依 阅读(409) 评论(0) 推荐(0)
摘要:1 #!/usr/bin/env python 2 #-*- coding=utf-8 -*- 3 #----------------导入模块------------------------------ 4 import os 5 import sys 6 7 #----------------设置 阅读全文
posted @ 2016-03-11 15:58 若丶相依 阅读(279) 评论(0) 推荐(0)
摘要:基于python3.4 while循环 1 #!/usr/bin/python3 2 #-*- coding=utf-8 -*- 3 4 import random 5 import sys 6 import os 7 8 lucky_num = int(random.randint(0,9)) 9 阅读全文
posted @ 2016-03-11 15:50 若丶相依 阅读(300) 评论(0) 推荐(0)