2017-10-09 5 views

답변

14

물론입니다. PyCall.jl을 참조하십시오.

julia> using PyCall 

julia> @pyimport bs4 

julia> @pyimport requests 

julia> r = requests.get("https://stackoverflow.com/questions/46638265"); 

julia> soup = bs4.BeautifulSoup(r[:content]); 

julia> soup[:title][:string] 
"Is it possible to call a python function from Julia and return its result - Stack Overflow" 

julia> soup[:select](".answercell p")[1][:text] 
"Absolutely. See PyCall.jl." 
+5

매우 궁금한 점이 있으십니까? :) – niczky12