笨办法学python第33节 这一节主要学习内容是while循环,记录内容为将while改成函数,首先源代码如下: i = 0 numbers = [] while i < 6: print "At the top i is %d" % i numbers.append(i) i = i + 1 print "Numbers now: ", numbers print "At the bottom i is %d" % i print &q
既然把默认python改成了python3的版本,那么这时候yum就出问题了,因为yum貌似不支持python3,开发了这个命令的老哥也不打算继续写支持python3的版本了,所以,如果和python版本相关的文件就不要通过yum下载了,这里我们需要把yum默认的指向改为python2.7的版本,分别是两个文件,使用vi打开,输入i进行修改,修改完之后按esc键,然后输入":wq",这就完成了修改并保存: vi /usr/libexec/urlgrabber-ext-down vi /
package com.example.demo; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; /** * Created by Administrator on 2019/6/19. */ public class URLEncode { public static void main(String[] args) { System.out.println(ChangeISOToUTF("ht