@Province()
New in 2.0Generate provinces
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
@Province(arg0)Generate province using specified dictionary
Example:
@Province(山西,河北,北京,上海)
Output:
北京上海@Province(arg0)Generate province in specified locale
Example:
@Province(en)
Output:
U.S.U.K.@Province()Generate province (Chinese)
Example:
@Province()
Output:
山东河北