原创 學習筆記(25):Python 面試100講(基於Python3.x)-Python字典與JSON字符串如何互轉

立即學習:https://edu.csdn.net/course/play/26755/340139?utm_source=blogtoedu json字符串和字典互相轉換 import json a = {'a': 123, 'b'

原创 學習筆記(08):Python 面試100講(基於Python3.x)-你真的瞭解Python字符串嗎

立即學習:https://edu.csdn.net/course/play/26755/340117?utm_source=blogtoedu   # 1.同時輸出單引號和雙引號 print('hello "world"') prin

原创 Tensorflow2.0深度學習(2)環境配置

環境:linux ubuntu 安裝anaconda及配置 直接去官網下載,地址: https://www.anaconda.com/distribution/#download-section 下載好了之後安裝 ba

原创 學習筆記(21):Python 面試100講(基於Python3.x)-用lambda表達式對列表進行排序

立即學習:https://edu.csdn.net/course/play/26755/340130?utm_source=blogtoedulambda表達式,排序   a = [ {'name': "A", 'age': 4

原创 學習筆記(12):Python 面試100講(基於Python3.x)-如何讓兩個列表首尾相接(保留重複的元素值)...

立即學習:https://edu.csdn.net/course/play/26755/340120?utm_source=blogtoedu   # 連接列表或者元組的方式 a = [1, 5, 7, 9, 6] b = [2, 3

原创 學習筆記(04):Python 面試100講(基於Python3.x)-改變字符串首字母的大小寫

立即學習:https://edu.csdn.net/course/play/26755/340113?utm_source=blogtoedu  1. 第一題 s = "hello" # 串首字母大寫 # 調用函數 print(s

原创 學習筆記(14):Python 面試100講(基於Python3.x)-單星和雙星運算符的作用,並舉例說明...

立即學習:https://edu.csdn.net/course/play/26755/340122?utm_source=blogtoedu # 1. * 和 ** 的作用 # * 可變參數 def func1(*para):

原创 學習筆記(18):Python 面試100講(基於Python3.x)-如何排序一個列表

立即學習:https://edu.csdn.net/course/play/26755/340127?utm_source=blogtoedu  a = [5, 2, 4, 1, 3] # 排序列表的方法 a.sort() prin

原创 LeetCode Hot-128最長連續序列(2019-12-25)

給定一個未排序的整數數組,找出最長連續序列的長度。 要求算法的時間複雜度爲 O(n)。 示例: 輸入: [100, 4, 200, 1, 3, 2] 輸出: 4 解釋: 最長連續序列是 [1, 2, 3, 4]。它的長度爲 4。

原创 學習筆記(30):Python 面試100講(基於Python3.x)-讓字符串居中顯示

立即學習:https://edu.csdn.net/course/play/26755/340143?utm_source=blogtoedu   # 1. center 方法 # 2. format 方法 # 一共11個字符,去掉h

原创 安全(3)-Netcat

netcat 我的是kali的虛擬機,IP是172.16.244.132 端口掃描 nc -nvz 192.168.1.1 這裏-n表示ip,不用經過DNS轉換,-v是提示,-z是不進行I/O,只是用來掃描 Telnet/

原创 學習筆記(26):Python 面試100講(基於Python3.x)-Python字符串格式化知多少

立即學習:https://edu.csdn.net/course/play/26755/340104?utm_source=blogtoedu Template用法   # Template from string import Te

原创 學習筆記(20):Python 面試100講(基於Python3.x)-del和pop在刪除列表元素上有什麼區別...

立即學習:https://edu.csdn.net/course/play/26755/340129?utm_source=blogtoedu del和pop區別  # del無返回值,但是pop有被刪除元素的返回值 a = [4,

原创 Tensorflow2.0深度學習(1)人工智能緒論

本系列Tensorflow2.0深度學習都是《基於TensorFlow 2.0深度學習開源書》的讀書筆記,在之後的筆記中都不在寫該引用 該github的地址爲https://github.com/dragen1860/Deep-

原创 學習筆記(15):Python 面試100講(基於Python3.x)-快速調換字典中的key和value

立即學習:https://edu.csdn.net/course/play/26755/340123?utm_source=blogtoedu  # 快速調換字典中的key和value d = {'a': 1, "b": 2} prin