文章90
标签1
分类38

python文件读写

23a8adc53d576ee27e49fc66cc64c65c.png

一些css样式

display:flex;

align-items: center;

input提示: placeholder='提示内容'

排序sort使用方法

/*

//sort(需要排序的数组索引,结尾索引)
如果 arr[4]
sort(arr+1,arr+3)就是对前3个数排序

*/

include

include

include //sort库

using namespace std;

int main() {

string fivenum[5];

for(int a=0;a<5;a++){

cout<<"请输入第:"<<a+1<<"个数"<<endl;
cin>>fivenum[a];

}

//降序
sort(fivenum+3,fivenum+5);
//升序
// sort(fivenum+3,fivenum+5,[](const string &a,const string &b){
// return a>b;
// });

cout<<"排序结果如下:"<<endl;
for(int a=0;a<5;a++){
cout<<fivenum[a]<<endl;
}

return 0;

}

PHP-判断加载url是否有参数传入

<!DOCTYPE html>
<html>
<body>
<?php
// 检查是否有名为 'test' 的参数,并输出其值
if (isset($_GET['test'])) {
    echo "have: " . htmlspecialchars($_GET['test']);
} else {
    echo "no 'test'";
}
?>

</body>
</html>

PHP-请求且返回响应

<!DOCTYPE html>
<html>
<body>
<?php
$html = file_get_contents("http:------------");
 
echo $html;
?>

</body>
</html>

注意为http

">