码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
C/C++中的全局变量与符号
搬运自我的CSDN https://blog.csdn.net/u013213111/article/details/106773639 0 引言 起因是在头文件中定义了全局变量,而又有多个不同的源文件包含了这个头文件,这样显然会出现multiple definition的问题。 以下是对上述问题的 ...
分类:编程语言   时间:2020-06-25 17:17:26    阅读次数:70
Linux搭建php网站
安装PHP、Nginx和PHP-FPM sudo apt-get install php sudo apt-get install nginx sudo apt-get install php7.2-fpm #(此处应用php版本) 配置Nginx和PHP-FPM 查看php-fpm配置 `cd / ...
分类:Web程序   时间:2020-06-25 16:06:15    阅读次数:132
linux---集群架构初探(24)Nginx Rewrite
Nginx Rewrite使用场景 1.URL地址跳转,例如用户访问pm.com将其跳转到baidu.com或者当用户通过http的方式访问时,将其跳转至https的方式访问。 2.URL伪静态,将动态页面显示为静态页面方式的一种技术,减少动态URL地址对外暴露过多的参数,提升更高的安全性。 3.搜 ...
分类:系统相关   时间:2020-06-25 16:00:25    阅读次数:61
Ubuntu 将Python从默认的2.7升级到3.* 版本
由于目前的服务器系统会带python2.7 和python3.*两个版本,但是默认python2.7,如果想改变下默认,下面为你提供下更换默认版本的思路方法 Ubuntu 将Python从默认的2.7升级到3.* 版本(建议使用原系统Python版本进行Python开发) 因为Ubuntu很多底层采 ...
分类:编程语言   时间:2020-06-25 13:52:05    阅读次数:58
js不打开直接下载txt文件
/** * 获取页面文件名 * @param url 文件url */ function downloadUrlFile(url) { url = url.replace(/\\/g, '/'); const xhr = new XMLHttpRequest(); xhr.open('GET', u ...
分类:Web程序   时间:2020-06-25 11:52:04    阅读次数:442
字符串格式化(整理)
#!/usr/bin/env python3 # ­*­ coding: utf­8 ­*­"""目录:Python格式化字符串的4中方式一:%号(掌握)二:str.format(掌握)三:f-Strings(掌握)四:标准库模板五:总结四种方式的应用场景""""""Python格式化字符串的4种方 ...
分类:其他好文   时间:2020-06-25 11:48:42    阅读次数:64
linux+python3.6环境安装pygame
1、安装anaconda3 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.0.1-Linux-x86_64.sh bash ~/Anaconda3-5.0.1-Linux-x86_64.sh #yes,E ...
分类:编程语言   时间:2020-06-25 11:37:16    阅读次数:71
使用python的接口测试环境搭建及使用
环境搭建 python 安装:建议使用python3.7 pycharm安装 requests安装 :pip3 install requests requests 基本使用 usage: >>> import requests >>> r = requests.get('https://www.py ...
分类:编程语言   时间:2020-06-25 10:22:47    阅读次数:108
Git的命令之restore
在旧版本中,git的撤销工作区的文件修改是用git checkout -- <file>命令,由于容易漏了--导致和切换分支混肴,所以新版本中: - 使用git restore (--worktree) <file>命令从暂存区恢复工作区 - 使用git restore --staged <file ...
分类:其他好文   时间:2020-06-25 10:17:20    阅读次数:465
.Net Core 一些项目 Github 开源地址
开源地址 CoreFX is the foundational class libraries for .NET Core. It includes types for collections, file systems, console, JSON, XML, async and many oth ...
分类:Web程序   时间:2020-06-25 10:11:21    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!