摘要:
有一种循环叫死循环,一经触发,就运行个天荒地老、海枯石烂。 海枯石烂代码 1 2 3 4 5 count = 0 while True: print("你是风儿我是沙,缠缠绵绵到天涯...",count) count +=1 1 2 3 4 5 count = 0 while True: print 阅读全文
posted @ 2018-11-04 08:58
rongye
阅读(183)
评论(0)
推荐(0)
摘要:
最简单的循环10次 1 2 3 4 5 6 #_*_coding:utf-8_*_ __author__ = 'Alex Li' for i in range(10): print("loop:", i ) 1 2 3 4 5 6 #_*_coding:utf-8_*_ __author__ = ' 阅读全文
posted @ 2018-11-04 08:57
rongye
阅读(166)
评论(0)
推荐(0)
摘要:
1 2 3 4 5 6 7 #!/usr/bin/env python #_*_coding:utf-8_*_ #name = raw_input("What is your name?") #only on python 2.x name = input("What is your name?") 阅读全文
posted @ 2018-11-04 08:55
rongye
阅读(150)
评论(0)
推荐(0)
摘要:
python解释器在加载 .py 文件中的代码时,会对内容进行编码(默认ascill) ASCII(American Standard Code for Information Interchange,美国标准信息交换代码)是基于拉丁字母的一套电脑编码系统,主要用于显示现代英语和其他西欧语言,其最多 阅读全文
posted @ 2018-11-04 08:54
rongye
阅读(129)
评论(0)
推荐(0)
摘要:
Variables are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descri 阅读全文
posted @ 2018-11-04 08:53
rongye
阅读(173)
评论(0)
推荐(0)
摘要:
windows 1 2 3 4 5 6 7 1、下载安装包 https://www.python.org/downloads/ 2、安装 默认安装路径:C:\python37 3、配置环境变量 【右键计算机】--》【属性】--》【高级系统设置】--》【高级】--》【环境变量】--》【在第二个内容框中 阅读全文
posted @ 2018-11-04 08:50
rongye
阅读(126)
评论(0)
推荐(0)
摘要:
In summary : Python 2.x is legacy, Python 3.x is the present and future of the language Python 3.0 was released in 2008. The final 2.x version 2.7 rel 阅读全文
posted @ 2018-11-04 08:49
rongye
阅读(243)
评论(0)
推荐(0)
摘要:
当我们编写Python代码时,我们得到的是一个包含Python代码的以.py为扩展名的文本文件。要运行代码,就需要Python解释器去执行.py文件。 由于整个Python语言从规范到解释器都是开源的,所以理论上,只要水平够高,任何人都可以编写Python解释器来执行Python代码(当然难度很大) 阅读全文
posted @ 2018-11-04 08:42
rongye
阅读(136)
评论(0)
推荐(0)

浙公网安备 33010602011771号