import urllib2
f=urllib2.open(raw_input("Please enter the URL:"))
s=f.read()
ff=open(raw_input("Please enter the filename:"),"w+")
ff.write(s)
ff.close()
阅读全部
|
cstdio
贴于 2019年2月14日 11:56
hide
bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import sys
import time
def get_remote_status():
l = os.popen('ssh root@remote.com "cd /var/www/mysite; git st"').readlines()
s = ''.join(l)
return s
......................
阅读全部
|
静夜思
贴于 2018年9月11日 10:29
hide
bbsi
# -*- coding: UTF-8 -*-
__author__ = 'sail'
a=20
i=0
while i<5:
c=input("输入1-50其中一个数:")
c=int(c)
if a>c:
print"输入数据过小"
elif a<c:
......................
阅读全部
|
sailstar
贴于 2017年11月18日 21:49
hide
bbsi
#一个简单猜数字游戏
# -*- coding: UTF-8 -*-
__author__ = 'sail'
a=20
i=0
while i<5:
c=input("输入1-50其中一个数:")
c=int(c)#這个地方应该抛出异常
if a>c:
......................
阅读全部
|
sailstar
贴于 2017年11月18日 21:43
hide
bbsi
import cv2
img=cv2.imread("1.jpeg")
tag=cv2.imread("11.jpg")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
tg = cv2.cvtColor(tag, cv2.COLOR_BGR2GRAY)
h=img.shape[0]
w=img.shape[1]
height=tg.shape[0]
width=tg.shape[1]
def matcher(a,b):
for x in range(0,height):
......................
阅读全部
|
qiqi不留白
贴于 2016年7月12日 21:18
hide
bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import sys
import time
def get_remote_status():
l = os.popen('ssh root@remote.com "cd /var/www/mysite; git st"').readlines()
s = ''.join(l)
return s
......................
阅读全部
|
静夜思
贴于 2014年8月14日 23:46
hide
bbsi
#===============================================================================
# YJ_MirrorShape_P
# author: yangjie
# mobilePhone:15850792203
# QQ:691633493
# E-mail:691633493@qq.com
#version:1.0
#===============================================================================
from YJ_Rig_Pub import*
def YJ_MirrorListShapes(InLis):
ObLis = InLis[0]
......................
阅读全部
|
zhuqingting
贴于 2014年8月13日 18:05
hide
bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
class File:
file = None
def __init__(self):
pass
@staticmethod
def open(obj, flag):
......................
阅读全部
|
静夜思
贴于 2014年8月12日 17:09
hide
bbsi
#-------------------------------------------------------------------------------
# Name: YJ_Leg_Rig
# Purpose: Rig Legs
#
# Author: yangjie
#
# Created: 05/07/2014
# Copyright: (c) yangjie 2014
# Licence: <your licence>
#-------------------------------------------------------------------------------
from YJ_Rig_Pub import*
from YJ_FK_Rig import*
......................
阅读全部
|
zhuqingting
贴于 2014年7月30日 16:53
hide
bbsi