使用Python编写
示例1:使用字符串格式化
```python
-*- coding: utf-8 -*-
def print_fu():
fu1 = "福"
fu2 = "福"
fu3 = "福"
fu4 = "福"
print("{0}{1}{2}{3}".format(fu1, fu2, fu3, fu4))
print("{0} {1}".format(fu1, fu2))
print("{0} {1} {2} {3}".format(fu1, fu2, fu3, fu4))
print("{0} {1}".format(fu1, fu2))
print("{0}{1}{2}{3}".format(fu1, fu2, fu3, fu4))
if __name__ == "__main__":
print_fu()
```
示例2:使用Unicode编码
```python
-*- coding: utf-8 -*-
def print_fu():
fu_code = u'\u798f'
print(fu_code * 4)
if __name__ == "__main__":
print_fu()
```
使用其他编程语言
示例3:使用JavaScript和HTML
```html