os.getcwd():获取当前工作目录。current_directory = os.getcwd()print(current_directory)os.chdir(path):改变当前工作目录。os.chdir('new_directory')os.listdir(path):列出指定目录下的所有文件和子目录。files = os.listdir('folder')print(files)os.mkdir(path):创建一个新的目录。os.mkdir('new_folder')os.rmdir(path):删除一个空目录。os.rmdir('empty_folder')os.remove(path):删除指定的文件。os.remove('file.txt')os.path.exists(path):检查指定的路径是否存在。if os.path.exists('path/to/file'):print('Path exists')else:print('Path does not exist')os.path.isfile(path):检查指定的路径是否为文件。if os.path.isfile('file.txt'):print('It is a file')else:print('It is not a file')os.path.isdir(path):检查指定的路径是否为目录。if os.path.isdir('folder'):print('It is a directory')else:print('It is not a directory')
1.安装lua 1.1安装LuaJIT
yum install readline-devel
mkdir -p lua-file
cd lua-file/
wget https://github.com/LuaJIT/LuaJIT/archive/refs/tags/v2.0.5.tar.gz
tar -zxvf LuaJIT-2.0.5.tar.gz
cd LuaJIT-2.0.5
make && make install PREFIX/usr/local/luajit 1.2…
题目 代码
#include <bits/stdc.h>
using namespace std;
typedef long long ll;
const int N 510;
int s[N][N];
int main()
{ios::sync_with_stdio(0);cin.tie(0);int n, m, k;cin >> n >> m >> k;for(int i 1; i < n; i)for(int j 1; j <…