If you're using an Xbox 360 controller on the PC version of Left 4 Dead 2 and want the button layout to exactly mirror the console version, you're mostly out of luck for a perfect match. The game doesn't offer a built-in option to replicate the 360 layout precisely.
That said, you can use third-party controller-mapping software to rebind the buttons closer to what you're used to. It takes a little setup, but it can make the controls feel more familiar if you're coming from the console version.