a = [1, 2, 3, 8, 9] def printlist(l, index): if index == len(l): return else: print(l[index]) printlist(l, index + 1) printlist(a, 0)
*****for和while循環底層用的是遞歸實現的code
漢字轉碼:遞歸
s = r'\u722c\u866b\u95ee\u9898'utf-8
s1=s.encode(encoding='utf-8').decode('unicode_escape')unicode
print(type(s1),s1)coding