Deep reinforcement learning in fluid mechanics: A promising method for both active flow control and shape optimization