ray.rllib.common.SupportedFileType.isidentifier#
- SupportedFileType.isidentifier()#
- 如果字符串是有效的 Python 标识符,则返回 True,否则返回 False。 - 调用 keyword.iskeyword(s) 来测试字符串 s 是否是保留标识符,例如 “def” 或 “class”。 
站点导航
如果字符串是有效的 Python 标识符,则返回 True,否则返回 False。
调用 keyword.iskeyword(s) 来测试字符串 s 是否是保留标识符,例如 “def” 或 “class”。