Hi, hope this help! :)
1) From my understanding, your sentence is
In spring, Shanghai is very beautiful
春天,上海很漂亮
If you add “了” , which means “already” the sentence will be (Shanghai very beautiful already) which is not wrong but the meaning changed.
Or you can actually say in this way
上海的春天很漂亮 (Spring in Shanghai is very beautiful)
2)可以去南边”的“南海游泳
的is use with nouns, while 得 is use with verbs