使用Python和Turtle库
```python
-*- coding: utf-8 -*-
import turtle
def print_fu():
福字的Unicode编码
fu_code = u'\u798f'
使用print函数将福字打印出来
print(fu_code * 4)
if __name__ == "__main__":
print_fu()
```
使用Python和PIL库
```python
-*- coding: utf-8 -*-
from PIL import Image, ImageDraw
def draw_fu():
img = Image.new('RGB', (100, 100), color='white')
draw = ImageDraw.Draw(img)
这里可以添加更多的绘图代码来绘制福字
img.save("fu.png")
if __name__ == "__main__":
draw_fu()
```
使用JavaScript和HTML5 Canvas
```html