Python造数据模板

注:需要下载cyaron第三方库!!!

from cyaron import *

#i从1循环到3

for i in range(1,4):

    #创建文件,文件名为“heat”
    test_data=IO(file_prefix="heat", data_id=i)

    #制造两个10以内的数
    s=randint(1,10)
    t=randint(1,10)

    #将数据输出到in文件里
    test_data.input_writeln(s, t)

    #运行std,并将输出数据输到out文件里    
    test_data.output_gen("D:\\std_binary.exe")

猜你喜欢

转载自www.cnblogs.com/N-S-P/p/10343536.html