The armchair nanotubes experience an indirect-direct gap change with n increasing. The zigzag nanotubes always possess a direct band gap regardless of n. The band gaps increase with diameter increasing. The varying range of the band gap can be from 0.44 to 1.98 eV. The strong modulation is due to large wall thickness and charge redistribution.