有大神可以教我一下这道题用python如何做嘛!
《斯卡布罗集市》是一首著名的歌曲,但是请你把它加密(利用python和凯撒加密)后交给另一位朋友lisi(一个函数),lisi将解密这首歌曲,并让某一位叫做zhangsan的同学唱出来。请你设计程序。
涉及到:第三方模块pygame的安装和使用,内置模块time和os的应用,文件的读写。
歌词如下:
Are you going to Scarborough Fair
Parsley,sage,rosemary and thyme
Remember me to one who lives there
She once was a true love of mine
Tell her to make me a cambric shirt
(Oh the side of a hill in the deep forest green) Parsley,sage,rosemary and thyme
(Tracing of sparrow on the snow crested brown)
Without no seams nor needle work
(Blankets and bedclothes the child of the mountain)
Then she’ll be ture loveof main
(Sleeps unaware of the clarion call)
Tell her to find mean acre of land
(On the side of a hill a sprinkling of leaves)
Parsley,sage,rosemary and thyme
(Washes the grave with silvery tears)
Between the salt water and the sea strand
(A soldier cleans and publishes a gun)
Then she’ll be a true love of mine
Tell her to reap it with a sickle of leather
(War bells blazing in scarlet battalion) Parsley,sage,rosemary and thyme
(Generals order their soldiers to kill)
And gather it all in a bunch of heather
(And to fight for a cause they’ve long ago forgotten)
Then she`ll be a true love of mine