Swift Learning Notes (15)--Programmer's romantic swift+unicode say I love you

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.