Programmers are often thought of as stiff, nerdy, and confused. But sometimes, we can use our own skills to express our romantic. Because the swift language is Unicode-encoded, Unicode has the latest support for emoji (emoji) emoticons. So, I think, can we use swift+unicode for romance?
Nonsense not to say, directly on the code:
Let love = "xxx, I \u{1f491}\u{1f492}\u{1f493}\u{1f495}\u{1f496}\u{1f497}\u{1f498}\u{1f499} you!" "
The output results are as follows:
。
Of course, there are a lot of emoji expressions in Unicode, about 250, and I'm just writing a very simple example. Programmers can play with their imaginations. Of course, try to do it in other languages.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Swift Learning Notes (15)--Programmer's romantic swift+unicode say I love you