---
title: "中文ruby"
author: "nnnnon"
date: "2009-05-25T16:06:08Z"
tags: []
slug: "ruby"
draft: false
lastmod: "2009-05-25T16:06:08Z"
id: 395486
url: "https://malijun.iteye.com/blog/395486"
---

```
# encoding: utf-8
out=File.open("out.txt","w")
会议={
主题:"科学发展观",
地点:"教务处二楼会议室"
}
会议[:时间]="3月12日下午两点"
会议.each do |参数,值|
	out.write "#{参数} 是 #{值}\n"
end
会议.delete(:地点)
会议.each do |参数,值|
	out.write "#{参数} 是 #{值}\n"
end
会议[:地点]="教务处小会议室"
会议.each do |参数,值|
	out.write "#{参数} 是 #{值}\n"
end
```

 

测试了一下1.9.1中的hash表现，同时了解了ruby中文编程也很强大！