跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 求方便的大佬给我运行一下pyTHON
未分類
14 2 月 2020

求方便的大佬给我运行一下pyTHON

801N 大佬有话说 :

求方便的大佬给我运行一下pyTHON

code=’114&73&55&110&69&37&53&113&'[:-1]    # "baseinfoSet_TELECOMPASSWORD":"114&73&55&110&69&37&53&113&"
list=map(int,code.split(‘&’))
result=[]
for i in list:
        if i > 57:
                i-=4
        result.append(chr(i))
print (”.join(result))    # output password:nE7jA%5m

801N 大佬有话说 :

我自己运行Python 2.7.5 (default, Aug7 2019, 00:51:29)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> code=’114&73&55&110&69&37&53&113&'[:-1]    # "baseinfoSet_TELECOMPASSWORD":"114&73&55&110&69&37&53&113&"
>>> list=map(int,code.split(‘&’))
>>> result=[]
>>> for i in list:
…   if i > 57:
…             i-=4
…   result.append(chr(i))
… print (”.join(result))    # output password:nE7jA%5m
File "<stdin>", line 5
    print (”.join(result))    # output password:nE7jA%5m
      ^
SyntaxError: invalid syntax
>>>

ibmall 大佬有话说 :

Python 2.7 好像是

print ”.join(result))

没试过

snx 大佬有话说 :

python37 正常运行

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具