Green’s Dictionary of Slang

dilly n.4

also dillie
[abbr. dillywhacker n.]

(US) a penis.

[UK]D. Gunston (ed.) Jemmy Twitcher’s Jests 85: So void of wit and common sense, / As not to know the difference, / Betwixt a partridge and a dilly.
[UK]Peeping Tom (London) 26 101: [cartoon aption] Lady. Well, Count, if you must know, we are going to Piccadilly. Count. Pick-a-Dilly! Well [...] I hope you’ll pick a good one.
[US] in G. Legman Limerick (1953) 37: The end of his dillie / Was shaped like a lily.