07 2020 档案
摘要:列表 list 和 元组 tuple 是Python中最常见的两种数据结构 都是可以放置任意数据类型的有序集合 在大多数编程语言中,集合的数据类型必须一致,但在Python 的列表和元组中,无此要求 # list l = [1, "hello", 1.23, {"name": "xiaoming"}
阅读全文
摘要:解决方法: 1. 在settings.json 中添加 "code-runner.executorMap": { "python": "set PYTHONIOENCODING=utf8 && python -u" } 或者 2. 在python代码中加入 import sys,io sys.std
阅读全文

浙公网安备 33010602011771号