摘要:
简述编译型与解释型语言的区别,且分别列出你知道的哪些语言属于编译型,哪些属于解释型 编译型:把代码经过翻译一次性翻译成计算机所能理解的二进制指令(c语言) 解释型:需要解释器进行同步翻译(python) 执行 Python 脚本的两种方式是什么 1.交互式环境:输入代码立即执行 优点:调试程序方便 阅读全文
posted @ 2018-09-16 22:12
Summerdreamcold
阅读(146)
评论(0)
推荐(0)
摘要:
# 1. 使用while循环输出1 2 3 4 5 6 8 9 10count = 1while count <= 10: if count == 7: count += 1 continue print(count) count += 1 # 2. 求1-100的所有数的和res=0count = 阅读全文
posted @ 2018-09-16 15:51
Summerdreamcold
阅读(371)
评论(0)
推荐(0)