Python
诸葛默默
好好学习~~~
展开
-
Python3中字符串、列表、数组的转换方法
版权声明:本文章为沐言-BigTree原创,转载复制请标明出处 https://blog.csdn.net/u011318077/article/details/86683174list以及array是python中经常会用到的数据类型,当需要对list以及array进行文件的读写操作的时候,由于write函数参数需要的是一个str,所以这时就需要对list或者array进行str的转换了。l...转载 2019-03-27 15:11:55 · 12210 阅读 · 0 评论 -
pyCharm常用快捷键及常用设置(自动保存,字体大小、样式,主题)
基于PyCharm3.0翻译的默认快捷键1、编辑(Editing)Ctrl + Space 基本的代码完成(类、方法、属性)Ctrl + Alt + Space 快速导入任意类Ctrl + Shift + Enter 语句完成Ctrl + P 参数信息(在方法中调用参数)Ctrl + Q 快速查看文档Shift + F1 外部文档Ctrl + 鼠标 简介Ctrl + F1 显示...转载 2019-03-23 21:27:03 · 555 阅读 · 0 评论 -
Python爬虫——爬歌曲
import requestsurl_api = "http://musicapi.taihe.com/v1/restserver/ting?method=baidu.ting.song.playAAC&songid=33895538"response = requests.get(url_api)data = response.json()file_link = data['b...原创 2019-03-23 12:55:27 · 2578 阅读 · 1 评论 -
Python语言程序设计 (第8期) ——练习1
练习1: Python基本语法元素 (第1周)数字形式转换 I描述:获得用户输入的一个正整数输入,输出该数字对应的中文字符表示。0到9对应的中文字符分别是:零一二三四五六七八九A = str(i...原创 2019-03-23 12:29:47 · 17575 阅读 · 0 评论 -
Python爬虫——批量爬歌曲
import requestsimport resongids_url = 'http://music.taihe.com/artist/2517'response = requests.get(songids_url)response.encoding = response.apparent_encodinghtml = response.textsongids = set(re...原创 2019-03-21 22:01:29 · 1182 阅读 · 0 评论 -
Python海龟绘图1
import turtleturtle.setup(650,350,200,200)#画布显示的窗口位置,第一个参数是宽,第二个参数是长,后两个参数是窗口的位置,如果不设置就在屏幕中间,0,0就是最左上角turtle.penup()turtle.fd(-250)#向正前方(也就是默认的往右走),bk是向海龟的相反方向移动,但是海龟的的方向仍是向前的turtle.pendown()turt...原创 2019-03-24 20:51:22 · 3441 阅读 · 0 评论 -
凯撒密码加密(解密未写完)
import pyperclipmessage = input(‘请输入您的信息:’)#‘This is my secret message.’key = int(input(‘请输入您的KEY:’))#13choice = int(input(‘请选择您的模块:1.加密;2.解密’))#‘encrypt’mode1 = ‘encrypt’mode2 = ‘decypt’LETTERS...转载 2019-03-20 22:32:38 · 621 阅读 · 0 评论 -
use python crack rar file
转载 2019-03-20 22:31:10 · 192 阅读 · 0 评论 -
AnalyzePE
#!/usr/bin/env pythonAnalyzePE.py was created by Glenn P. Edwards Jr.http://hiddenillusion.blogspot.com@hiddenillusionVersion 0.1.4Date: 10-15-2012“”"Usage:1) Set up the correct paths to clams...转载 2019-03-20 22:19:07 · 461 阅读 · 0 评论 -
RSA Cipher
RSA Cipherhttp://inventwithpython.com/hacking (BSD Licensed)import sysIMPORTANT: The block size MUST be less than or equal to the key size!(Note: The block size is in bytes, the key size is in bit...转载 2019-03-20 22:18:28 · 676 阅读 · 0 评论 -
affineCipher
Affine Cipherhttp://inventwithpython.com/hacking (BSD Licensed)import sys, pyperclip, cryptomath, randomSYMBOLS = “”" !"#$%&’()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdef...转载 2019-03-20 22:12:14 · 438 阅读 · 0 评论 -
py写的玩
import sys,random,cryptomathSYMBOLS=""" !"#$%&’()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~"""def main():myMessage="""“A computer would deserve t...转载 2019-03-20 22:11:21 · 224 阅读 · 0 评论 -
Python编写——修改Message内的字典可以完成字符转换
Message = {‘a’:‘sun’}def main():plain_Text = input(“Your plaintext is :”)Translated_Text = translated(plain_Text)print(Translated_Text)def translated(text):for i in text:list = []try:b = Mess...原创 2019-03-20 22:07:37 · 318 阅读 · 0 评论