python
我的头好重啊啊
这个作者很懒,什么都没留下…
展开
-
***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 阅读 · 0 评论 -
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 · 583 阅读 · 1 评论 -
二维数组的查找
在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。完成一个函数,输入这样一个二维数组和证书,判断数组中是否含有该整数 # -*- coding:utf-8 -*- class Solution: # array 二维列表 def Find(self, target, array): # write code here ...原创 2019-08-03 19:42:47 · 74 阅读 · 0 评论 -
替换空格
实现一个函数,把字符串的每个空格替换“%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 · 90 阅读 · 0 评论