2016年11月29日

字符编码

摘要: python解释器在加载.py文件中的代码时,会对内容进行编码,默认的是ASCII。 ASCII(American Standard Code for Information Interchange,美国标准信息交换代码)是基于拉丁字母的一套电脑编码系统,主要用于显示现代英语和其它西欧语言。其最多只 阅读全文

posted @ 2016-11-29 15:17 裤裆内隐藏杀气 阅读(151) 评论(0) 推荐(0) 编辑

python求3的倍数与和

摘要: suqares=[] i=1 sum=0 while i<=100: i+=1 if i*3: sum=sum+i # print(i) suqares.append(i*3) # print(suqares.count()) print(suqares) # print(len(suqares)) print(sum) 阅读全文

posted @ 2016-11-29 14:38 裤裆内隐藏杀气 阅读(4834) 评论(0) 推荐(0) 编辑

导航