我在 python 中加载数据文件时遇到问题。我得到的错误是
datasim = loadtxt("/home/ddrek/Dust/ppc/1925.txt")
^
SyntaxError: invalid syntax
这是代码:
from numpy import *
import matplotlib.pyplot as plt
import pylab
data = loadtxt("/home/di/DI/ic/da/flash/oux.19_"+str(DOM))
d, t, q = data[:,1], data[:,2], data[:,3]
d, t, q = loadtxt("/home/di/DI/ic/da/flash/oux.19_"+str(DOM), usecols = #(1,2,3), unpack=True)
datasim = loadtxt("/home/ddrek/Dust/ppc/1925.txt")
谢谢!