A man will simply say "cheers" and buy you a pint. What do you expect him to do?
If I was going to TA to get hit on, I would probably TA something besides Introduction to Computer Systems. The girls I've dated tend to be more attractive than the girls who show up at office hours, and I'm deliberately cold to women who hit on me at office hours because it's insulting (and I'm kind of a dick).
And if ever there was a student who bought me a beer, s/he would be the first one to get help at office hours without a doubt. The problem is that the men tend to interrupt other students getting help, call for my attention across the room while I'm busy with something else, and just act with a general sense of entitled arrogance.
On the flip-side, in my experience (I run a MMO guild hosting site, so this is a demographic that's rife with drama), the women I've talked with have a much stronger tendency to get WAY vindictive. I find harshly written emails (on that rare occasion) tend to come from women moreso than men. The men I've helped, when sending an email concerning something like billing or whatnot, tend to be more chill about things "Hey, I noticed X and it doesn't seem to be in line with what I was expecting. What's up?", vs the emails I've gotten from women for similar issues that go something like "What the hell? I don't know what you guys are doing, but if this issue isn't resolved immediately, I'm going to dispute the charge" (mind you, that might be an initial correspondence).
None of this is universal, but those are some of the tendencies I've experienced.
Men rarely, if ever, act as grateful as women when you help them. There's a long list of potential reasons for this, but I've found it nearly universally to be the case.
Even though it's not politically correct, you're more likely to help the person who will thank you sincerely for the help as opposed to the guy who feels like you owe it to him (also often the case).