码迷,mamicode.com
首页 >  
搜索关键字:wine os x    ( 140323个结果
PHP中替换换行符的几种方法小结【转】
<?php ?$str="this is a test \n"; $patten = array("\r\n", "\n", "\r"); //先替换掉\r\n,然后是否存在\n,最后替换\r $str=str_replace($order, "", $str); ?> //php 有三种方法来解决 ...
分类:Web程序   时间:2020-07-04 13:09:32    阅读次数:69
Python识别图片中的文字
1 import os,glob 2 def photo_compression(original_imgage,tmp_image_path): 3 '''图片备份、压缩;param original_imgage:原始图片路径;param tmp_imgage_path:临时图片路径,备份路径; ...
分类:编程语言   时间:2020-07-04 12:00:15    阅读次数:81
20.多端项目上线部署(2)部署后端项目NewCenter到腾讯云服务器
1.项目准备 1.在settings.py中 STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') # STATICFILES_DIRS = ( # os.path.join(BASE_DIR, 'static' ...
分类:其他好文   时间:2020-07-03 17:22:59    阅读次数:79
最近项目中用到的方法
1.获取小数点后的字符串(情景时需要获取文件类型 你好.png/新生手册.doc) var filename = '新生.doc' filename.substring(filename.lastIndexOf('.') + 1)或者filename.split('.')[1] 2.判断IOS还是A ...
分类:其他好文   时间:2020-07-03 12:35:36    阅读次数:58
xlrd学习使用
安装xlrd # windows 安装 pip install xlrd # mac 安装 pip3 install xlrd 使用xlrd 1.导入xlrd import xlrd 2.打开excel # 添加文件路径 excel_path = os.path.join(os.path.dirna ...
分类:其他好文   时间:2020-07-03 10:33:38    阅读次数:85
练习17--更多文件
一 相关知识 1 exists命令: 功能:基于一个字符串里面的变量文件名来判断文件是否存在,如果存在,返回 True ;不存在,返回 False 。 注意:在脚本中使用该命令需要导入:from os.path import exists 2 cat命令 功能:用于连接文件并打印到标准输出设备上。 ...
分类:其他好文   时间:2020-07-03 09:11:31    阅读次数:64
Pytest01-环境搭建
1.环境搭建 1.1 运行环境 本机运行环境如下所示: Python: 3.7.6 OS:Windows 10 x64 IDE:PyCharm 2020.1 Pytest:5.4.2 1.2 安装pytest 1、在命令行窗口中执行以下命令 pip install -U pytest 2、在命令行窗 ...
分类:其他好文   时间:2020-07-03 00:54:51    阅读次数:72
torch.cuda.is_available() OSError: [WinError 126]
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch conda install pytorch torchvision cpuonly -c pytorch 穷没独显 ...
分类:Windows程序   时间:2020-07-03 00:45:37    阅读次数:79
api_config.py
#!/user/bin/python3# -*- coding: utf-8 -*-# @Time : 2020/7/2 20:11# @Author :Test_zhangping# @Email :981874735@qq.com# @File :api_config.pyimport os# ...
分类:Windows程序   时间:2020-07-02 21:48:42    阅读次数:73
Go 文件 读写
可以从文件读写,也可以从标准输入流读,写到控制台 import ( "fmt" "bufio" "os" ) func main() { var s string reader := bufio.NewReader(os.Stdin) fmt.Printf("输入>> ") s,_ = reader ...
分类:其他好文   时间:2020-07-02 19:57:01    阅读次数:60
140323条   上一页 1 ... 52 53 54 55 56 ... 14033 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!