15 lines
256 B
Python
15 lines
256 B
Python
# demo.py
|
|
|
|
import sys
|
|
|
|
# 重新配置标准输出流的编码为 UTF-8
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
def main():
|
|
result = "Hello, World!"
|
|
return_value = 42
|
|
print(result)
|
|
print(return_value)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|