字符串内建函数(str) capitalize()案例 #capitalize 首字母大写 s = 'this is dog' print(s) print(id(s)) New_s = s.capitalize() print(New_s) print(id(New_s)) 字符串的相关函数 He ...
分类:
其他好文 时间:
2018-06-25 13:03:12
阅读次数:
140
1 工具目录 linux默认会安装logrotate工具,自身的boot.log就是通过它分割转储的。 主配置文件为/etc/logrotate.conf,还有个目录/etc/logrotate.d/。系统会按应用,在这个目录中创建转储配置文件。 2 转储配置 2.1 nginx /app/ngin ...
分类:
其他好文 时间:
2018-06-25 12:55:54
阅读次数:
528
Ubuntu下,运行django项目的时候失败,报错: 错误原因有可能是在settings中静态文件目录设置的有问题 ...
分类:
其他好文 时间:
2018-06-22 21:43:44
阅读次数:
6573
这是tensorflow 一个经常性错误,错误的原因在于:显卡内存不够。 解决方法就是降低显卡的使用内存,途径有以下几种措施: 1 减少Batch 的大小 2 分析错误的位置,在哪一层出现显卡不够,比如在全连接层出现的,则降低全连接层的维度,把2048改成1042啥的 3 增加pool 层,降低整个 ...
分类:
编程语言 时间:
2018-06-21 22:36:47
阅读次数:
910
文件:python中的文件读写和c兼容,磁盘上的读写由操作系统完成,一般的程序无法操作磁盘。文件读写是通过操作系统对象完成,该对象称为文件描述符。 文件的操作分两种: 1.打开文件open(path,flag[,encoding][,errors])path:要打开文件的路径。flag:打开方式。 ...
分类:
编程语言 时间:
2018-06-21 01:46:24
阅读次数:
227
FAQ:> Manifest merger failed with multiple errors, see logs 解决: 此问题产生原因大概有三个 # 第一,清单文件有错,这种错不会在编译时指出来,当然as中还是可以看到的, 边上的红色就是了# 第二,引入的三方包存在相同的label icon ...
分类:
移动开发 时间:
2018-06-20 18:46:12
阅读次数:
241
运行object detection报错如下: Failed to find any matching files for /a-a/model.ckpt 原因是路径中不支持有-,所以/a-a是找不到该路径的。 ...
分类:
编程语言 时间:
2018-06-20 11:12:48
阅读次数:
5181
Nginx Errors upstream response cache error *2470578 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/6/10/0000010106 w ...
分类:
系统相关 时间:
2018-06-18 13:25:43
阅读次数:
364
import random,time,sys,os from selenium import webdriver from _weakref import proxy import ssl import json sys.path += ["C:\\01mywork\\workspace\\Test... ...
分类:
其他好文 时间:
2018-06-16 18:40:03
阅读次数:
451
项目启动时,添加下面代码: 项目启动时,添加 public App() { ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true ...
分类:
其他好文 时间:
2018-06-13 17:23:34
阅读次数:
210