@City()
New in 2.0Generate cities
Geographic InformationSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| dict | — | — | Custom value dictionary, multiple values separated by '|' | |
| locale | — | — | Internationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN |
Usage
@City(arg0)Generate city using specified dictionary
Example:
@Word(北京|深圳|上海))
Output:
深圳上海@City(arg0)Generate city in specified locale
Example:
@City(en)
Output:
ChicagoNew York@City()Generate city (Chinese)
Output:
北京上海