
位置和数量 | 作用 |
|---|---|
一个放后面 | 避免名字冲突 |
两个放两边 | 系统变量 |

重新赋值 __builtins__ = 1

绝望


本地 locals()

添加图片注释,不超过 140 字(可选)
结果
import os

添加图片注释,不超过 140 字(可选)
删除变量
__builtins__ = 1 del __builtins__

添加图片注释,不超过 140 字(可选)
可读性

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)
加空格的原因 import this

添加图片注释,不超过 140 字(可选)
具体规范

添加图片注释,不超过 140 字(可选)
pep8

添加图片注释,不超过 140 字(可选)
下划线来历

添加图片注释,不超过 140 字(可选)
电子排版领域 The underscore is not the same character as the dash character, although one convention for text news wires is to use an underscore when an em-dash or en-dash is desired, or when other non-standard characters such as bullets would be appropriate. A series of underscores [like -___ ] may be used to create a blank to be filled in on a form, although the resulting blank may have tiny gaps between each individual underscore. It is also sometimes used to create a horizontal line; other symbols with similar graphemes, such as hyphens and dashes, are also used for this purpose.
计算机时代
This character is sometimes used to create visual spacing within a sequence of characters, where a whitespace characteris not permitted (e.g., in computer filenames, email addresses, and in Internet URLs). Some computer applications will automatically underline text surrounded by underscores: underlined will render underlined. It is often used in plain text-only media (IRC, instant messaging, classical Email) for this purpose.
When the underscore is used for emphasis in this fashion, it is usually interpreted as indicating that the enclosed text is underlined (as opposed to being italicized or bold, which is indicated by /slashes/ or asterisks, respectively).
总结

添加图片注释,不超过 140 字(可选)
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
