变量1,变量2,变量3=input("提示语句").split("分隔符",分隔次数) 这里input用split返回的值是列表,如果想对他进行强制类型转换请用map函数 ...
分类:
编程语言 时间:
2021-04-13 12:29:48
阅读次数:
0
# 常用语句 ## 条件语句 ### if.....else.... while True: x = int(input("请输入数字:50")) if x >50: print("你输入的数大于50") else: print("你输入的值小于50") ### if....elif....else ...
分类:
其他好文 时间:
2021-04-13 12:27:47
阅读次数:
0
IDEA中使用Tomcat解决中文乱码问题 首先在Tomcat的Configurations中配置VM options: -Dfile.encoding=UTF-8 如果操作1不行,就设置IDEA的编码: 在Setting中选择File Encodings: Global Encoding选择UTF ...
分类:
其他好文 时间:
2021-04-13 12:20:15
阅读次数:
0
vi string_array.sh #!/bin/bash city=(Nanjing Atlanta Massachusetts Marseilles) #建立一个简单的数组echo "Extracting Substring" #演示抽取子串功能echo ${city[*]:0} #抽取整个数 ...
分类:
编程语言 时间:
2021-04-13 12:08:59
阅读次数:
0
#coding:utf-8 import xlrd,requests file_name = r"F:\pythonScript\map_dp\data_center\data_config\second_disaster_of_agriculture_and_natural_gas.xls" wo ...
分类:
编程语言 时间:
2021-04-13 11:59:05
阅读次数:
0
"""@File : ${NAME}.py@Author : name@Time : ${DATE} ${HOUR}:${MINUTE}@explain :""" ...
分类:
其他好文 时间:
2021-04-13 11:58:13
阅读次数:
0
前面,我们学习了文件的读(read)和写(write),都是用open()方法打开文件并获取文件流。然后在读或写操作完成后进行流的关闭(close).有时候,最后的流关闭很容易被忽略,从而导致了内存泄漏的问题。 今天要说的就是with,用于自动关闭流。 用法:with open(file, mode ...
分类:
编程语言 时间:
2021-04-13 11:57:38
阅读次数:
0
行内元素: <span> <a> <i> <img> <button <input> <select> <strong> 粗体强调 <q> 段引用 <lable> 表格 块元素: <div> <h1>-6 <p> <form> <table> <ol> <ul> <li> <hr> 水平分割线 <c ...
分类:
其他好文 时间:
2021-04-13 11:54:01
阅读次数:
0
include "flag.php"; 被包含文件先按参数给出的路径寻找,如果没有给出目录(只有文件名)时则按照 include_path 指定的目录寻找 $a = @$_REQUEST['hello']; 代表 $_REQUEST 将包含 $_GET 和 $_POST 的值,并且当 $_GET 和 ...
分类:
Web程序 时间:
2021-04-13 11:51:24
阅读次数:
0
【管道】 https://www.cnblogs.com/sparkdev/p/10997135.html管道(pipe)是进程间通信的一种实现方式。在 Linux 系统中,管道本质上是一种特殊的文件,它的主要用途是实现进程间的通信。 管道的一个显著特点是:创建一个管道后,会获得两个文件描述符,分别 ...
分类:
系统相关 时间:
2021-04-13 11:51:05
阅读次数:
0