Hangzhou, capital of the eastern Zhejiang province and home to Alibaba and other tech companies, ranked first in this year’s rankings.