【python】使用spyder运行文件

import subprocess
import sys

# Set the input arguments
seed = 19
m = 5
N = 50
T = 7
method = 'independent'  # Set this to the desired method
cov_r = 0.25
cov_s = 1.8
N_eva = 100
T_eva = 1000
gamma = 0.9
basis = 'polynomial'
cv_criterion = 'min'
setting = 'ex_subject'
burnin = 1000
cv_loss = 'kerneldist'

# Construct the command
command = [
    'python',
    'xxx.py',
    str(seed),
    str(m),
    str(N),
    str(T),
    method,
    str(cov_r),
    str(cov_s),
    str(N_eva),
    str(T_eva),
    str(gamma),
    basis,
    cv_criterion,
    setting,
    str(burnin),
    cv_loss
]

# Run the script using subprocess
subprocess.run(command)

你可能感兴趣的:(python,前端,开发语言)