Abstract: By appropriately choosing a defining set, we define a class of linear codes and determine their complete weight enumerators and weight enumerators using Weil sums. They only have two or ...