a = {1, 2, 3}
print(a)
b = {3, 4, 5}
print( a.union(b) )
#{1, 2, 3, 4, 5}
print( a.intersection(b) )
#{3}
print( a-b )
print( a|b )
print( a&b )
#{1, 2}
#{1, 2, 3, 4, 5}
#{3}
1/22/2014
(Python study) about set variable (example source code)
Subscribe to:
Post Comments (Atom)
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
Open powershell by admin and put this on terminal > net stop wuauserv #stop service update > net stop bits #stop bits > Remove-Ite...
-
This error is because of schedule{ step:0 learning_rate: 0.00019... } So just change whole optimizer block to latest models optimiz...
-
error message: remote: Resolving deltas: 100% (23/23), completed with 8 local objects. remote: error: Trace: 2ffe6017a58c483deb760c27365127...
-
I use MOG2 algorithm to background subtraction. The process is resize to small for more fast processing to blur for avoid noise affectio...
-
AMD GPU Programming Primer Threads · Waves · Memory · Tile Distribution · Vector Loads · MFMA ...
-
usage for CIPAddressCtrl in mfc < gist code > < end >
-
Here is good reference for this subject: https://aws.amazon.com/premiumsupport/knowledge-center/lambda-layer-simulated-docker/ https://dev....
-
Refer to this page about official reference of ICF http://docs.opencv.org/3.0.0/d6/dc8/classcv_1_1xobjdetect_1_1ICFDetector.html Other pa...
No comments:
Post a Comment