- 博客(5)
- 收藏
- 关注
原创 替换空格
实现一个函数,把字符串的每个空格替换“%20”。 Python实现: import sys s = sys.stdin.readline().strip() s = s.split() s = '%20'.join(s) print(s) 或者: class Solution: # s 源字符串 def replaceSpace(self, s): # write...
2019-08-03 20:15:32 91
原创 二维数组的查找
在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。完成一个函数,输入这样一个二维数组和证书,判断数组中是否含有该整数 # -*- coding:utf-8 -*- class Solution: # array 二维列表 def Find(self, target, array): # write code here ...
2019-08-03 19:42:47 75
原创 centos7 安装python3,pip3,torch
yum安装Python3 yum install epel-release –y yum install https://centos7.iuscommunity.org/ius-release.rpm -y yum install python36 u –y ln –s /bin/python3.6 /bin/python3 编译安装Python3 wget https://www.pytho...
2019-02-22 20:51:28 584 1
原创 ***Errors when install mrjob on centos***
errors when install mrjob on centos error: Cannot uninstall ‘requests’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a...
2018-09-30 11:03:23 314
原创 Ubuntu下三条命令成功安装ffmpeg
** Simply online install with three steps ** 1 sudo add-apt-repository ppa:dicj/hybrid 2 sudo apt-get update 3 sudo apt-get install ffmpeg that’s it now have a test: successfully...
2018-09-15 14:10:27 1102
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人